510 pts.
 What fields are used in the RPG program
I have a big RPG program ( say around 20000 lines ) and in that program FILEA is declared in F Spec. I would like to know what are the fields of FILEA are used in that program without browse / edit thru SEU.
Thanks in Advance.


Software/Hardware used:
AS400
ASKED: January 6, 2011  4:01 AM
UPDATED: January 12, 2011  2:15 AM

Answer Wiki:
You can look at the cross reference list from you compile listing. If a file is used, it will have multiple references. If not used it will have *RNF 7031
Last Wiki Answer Submitted:  January 6, 2011  2:54 pm  by  CharlieBrowne   32,905 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,905 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

CharlieBrowne’s recommendation is best. Just submit a compile into QTEMP and review the cross-reference. Let the computer do your work for you. That’s why we use computers.

Tom

 108,205 pts.

 

Actually i am Fresher to AS400,I have finished my course now oly, Searching for AS400 Job.

How To see the cross reference.can u explain step by step.
Please

 510 pts.

 

can u explain step by step.

Step #1: Compile the program.
Step #2: Look at the cross-reference portion of the listing.

I’m not sure what you are asking. The cross-reference is part of the output from a compile.

Tom

 108,205 pts.

 

Hi CharlieBrown & Tom,
Thanks sir.Now i have understood.
Its very useful…

Without seeing cross reference,can we able to check?

 510 pts.

 

What is the expansion of *RNF?

 510 pts.

 

What is the expansion of *RNF?

The reference was “*RNF 7031″. You will see message identifier RNF7031 in the compiler listing for variables that are defined but are not actually used by the program.

Your original question asked “without browse / edit thru SEU.” You could use WDSC instead of SEU. The later releases of WDSC (and its replacements) included features that would expand /COPY modules and do other helpful things. That makes it easier to search the full set of source statements. WDSC also allows macro programming, so it’s possible to write a macro that does most or all of the searching for you.

Tom

 108,205 pts.