PGM described update file

320 pts.
Tags:
PGM
RPG
Hi, I'm trying to update a program described file. I have tried setting the F specs up to allow processing by key by placing the following information in the noted locations: 07-14: file name 15: "U" 16: "F" 19: "F" 26-27: File length (32) 30: The length of the key (8) 31: "A" 32: "I" 38: The starting position of the key field (1) 40-43: DISK 66: "A" 71-72:"UC" I then coded a DS as the key with a field defined as 8 bytes. When the program runs I open the file and chain using the DS and get CPF5149 which basically informs me that the operation for the file is not valid! What am I doing wrong?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is the file definitely indexed?
———————————–
I don’t see how you could chain on anything but RRN.
It compiles because it’s internally defined and the compiler doesn’t look for the file.
Phil

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Floyd02
    BINGO! No DDS specs for the file so it's not an indexed file. It's simply a flat file used to hold some data, created by the cl before the call to this pgm.
    320 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following