Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with dspf file stuff

Status
Not open for further replies.

afcjack

Programmer
Mar 25, 2004
1
BR
hey guys, here's the thing: i have to make a program that generates a printer file that contains the variables, their name, type and lentgh of any given dspf file source (as400/rpg400). any ideas on how to do that? thx!
 
I'm not sure, does the system cross-ref file contain data on DSPF? I know it has PF and LF.

Else, you prob have to scan the source, or use a dspfd against the dspf.

 
do a dsppfm on the file of your source,, example you keep the programs in qddssrc in the mylib library,,, and every source is a different member. somewhere is the pf,,, should be some indication of what kind of a member it is. Play around with that and see where you go.

 
AFCJACK
could you not, using PDM, call up all DSPF members in a source file. Select option PRINT, then do a CPYSPLF to a physical file, and write a program to extract the variables?
Warren
 
DSPFFD FILE(file) OUTPUT(*OUTFILE) OUTFILE(lib/outfile)

Then you can do an OPNQRYF on outfile (to sort it), and write an RPG program to print the results.


"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."

--Leonardo da Vinci

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top