320 pts.
 PGM described update file
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?

Software/Hardware used:
ASKED: August 10, 2009  9:15 PM
UPDATED: August 11, 2009  2:56 PM

Answer Wiki:
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
Last Wiki Answer Submitted:  August 11, 2009  2:56 pm  by  JSellick   115 pts.
All Answer Wiki Contributors:  JSellick   115 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.