Hi,
I am very new to RPG and have a doubt on processing of keyed program described files. I know it's not a good idea to use program described files as externally described files offer many advantages over the former, but I am just exploring the alternatives. How do we tell the system about the key of program described files.
Regards
Shruti.
Software/Hardware used:
ASKED:
April 2, 2009 11:45 AM
UPDATED:
April 3, 2009 10:16 AM
Thanks for the answer. I understood the purpose of all entries except ’1′ preceding ‘DISK’. Could you please tell me why is it used?
Hi,
That’s the start position of the key (Kloc = Key location).
Regards,
Martin Gilbert.
Okie now I understood, but some people explicitly use KEYLOC function for the location of the key, is there any difference between the two?
Hi,
Prompt for File Specs looks like the following:
FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++++++++++Comments++++++++++++
*************** Beginning of data *************************************************************
FEmployee IF F 39 5AIDISK KEYLOC(1)
which doesn’t have Key Location in it, that’s why I had to use KEYLOC function…while your prompt for F-specs looks different.
Regards
Shruti.
Hi,
Sorry, I used the RPG/400 prompt instead of the ILE prompt. We still use a lot of RPG/400 here, and sometimes I look at the wrong one.
Regards,
Martin Gilbert.