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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieve contents of a command program

Status
Not open for further replies.

AOLBoy

IS-IT--Management
May 7, 2002
68
0
0
GB
I have a lot of *CMD programs on my AS400 which run CL programs which are not the same name as the command.

Is there a command that I can run and output the information contained in 'Program to Process command'.

I have tried DSPOBJD to an *OUTFILE but this doesn't show the information.

Many Thanks
 
Use DSPCMD (Display Command).

Nullum gratuitum prandium.
--Sleipinir214

 
thanks flapeyre, but what I am looking for is a command that I can run that puts the details of all command programs in a library to a disk file (*OUTFILE) (bit like DSPOBJD), rather than run DSPCMD for each command individually - I have got about 500-600 to look at.

 
Thanks for your help here folks.

I used the QCDRCMDI api within a CL program and passed the output from each call into a program that wrote the details onto a disk file.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top