PDA

View Full Version : LIKEREC keyword in V5R2 supported or not?



S.Mildenberger
10-11-2002, 11:51 AM
Were not at V5R2 so I don't know about your question but something that got me earlier this week was the TGTRLS parameter of the compile command had been changed from *CURRENT to a previous release. You might check your defaults to make sure it hasn't been changed. Scott Mildenberger

Guest.Visitor
10-11-2002, 01:43 PM
I have attempted to use the new LIKEREC keyword in V5R2 to define key lists instead of using the KLIST opcode. This lends itself to free form coding better. However, when I compile the program, the compiler tells me the keyword is not allowed. Viewing the help text of the compile error does not show the LIKEREC keyword listed as a valid keyword. SEU doesn't mind the keyword and it is in the RPG Reference manual (Where I found the example I am trying to duplicate). Has anyone else tried using this keyword yet? This is the statement I am using: d klLSCMXF01 ds LikeRec(LSCMXF01: *KEY) This is the error on compile: RNF3308 20 a 040500 Keyword name is not valid; the keyword is ignored.

Guest.Visitor
10-11-2002, 01:43 PM
This is embarassing but that was it. I was sure I had checked that before I posted this message. Thanks.