685 pts.
 Decipherig RPGLE Specs…
I did a CPYF from LIBRARY/QRPGLESRC(RPGLEPGM) to a new physical file created on the fly. Now, I know that when you do this, the data in the SRCDTA field shows exactly what's in the program. BUT, how am I to figure out if an I-Spec statement reflects an actual I, IX, J, or JX prompt?

Software/Hardware used:
ASKED: June 11, 2008  12:55 PM
UPDATED: April 26, 2010  7:32 AM

Answer Wiki:
Hi, I would probably use the following :- IX = Record name (10 positions) & Indicator (2 pos), rest of line must be blanks. otherwise J = Blanks up until Date format otherwise JX = Blanks before Ext field, Ext field must filled otherwise I Not the most straightforward way of working it out and not perfect either, but I think it should work for most cases. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  June 11, 2008  2:06 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

You aren’t supposed to decipher it. The compiler or the source editor does that.

Beyond that, you can decipher it because you’re a programmer familiar with the language. How could you know what to type in in the first place otherwise? Formats such as IX, J and JX don’t actually exist anyway. Those are totally for SEU and nothing else.

Since you can’t alter SEU, there’s no need for you to know which is which. All you need to know is where source data is in the columns.

Tom

 108,225 pts.