INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

VISUAL AGE COBOL FILE ERROR

VISUAL AGE COBOL FILE ERROR

(OP)
Hi...

I´m starting to work with VA COBOL (3.0.4) and now I´m performing some basic tests on the tool.

So far, the tool seems ok, but something very weird is happening.

I made a program only to fill a file with some data. (Let´s call it "writer"). This program performed quite well and created a file almost exactly as I wanted. The only "con" here is about the file format, VA uses an "STsomething format" for the sequencial file.

However, I also created a simple program to read the file generated by the program above (Let´s call it "reader"). To do this I used the very same copybook (with the file definition) I used on the "writer" program. I also used exactly the same FD for both programs.

The point is, the "writer" does write the file as expected, but the "reader" just can´t read any COMP-3 fields and I receive an "Invalid Data" response from the debugger.

My first though were about a wrong generated file, But when I open the file with any Hex Editor, I can see that all COMP-3 fields are correctly filled.

It seems to me that I'm doing something silly. Have anyone faced this before?

Best regards

Jose Armando Porto

RE: VISUAL AGE COBOL FILE ERROR

Hi jamap,

1. The writer "created a file almost exactly as I wanted".    What was not wanted in this file?

2. It is possible that when the "writer" created the file, it used some internal tools/logic to align binary data on their natural boundaries (even bytes).     This alignment was therefore not registered in the copybook later used by the "reader".    Check the COMP field boundary alignment.

Dimandja

RE: VISUAL AGE COBOL FILE ERROR

Hi Jose,

Were you able to solve this?

RE: VISUAL AGE COBOL FILE ERROR

Jose,

I have a similar issue, how did you solve?

rmarque

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close