Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Finding out the Parameter definition of AS400 Program

Posted on 2003-02-18
Medium Priority
Last Modified: 2012-05-05
Hi All,

I am a VB programmer asked to do some AS400 work. So I am really new to this. Thus the question I'm about to ask is probably really easy.

Does anyone know how to find out the parameter/interface definition for an AS400 program or CL Program? For example, I am trying to call the QGPL.LIB\CALC.PGM program but I have no idea what its params are? Surely there is  something like the Unix "man" function or some help function....

Question by:stuartngo
  • 4

Expert Comment

ID: 7980460
Hi Stuart,

Im not completely sure as i am an Operator and not really a programmer...

You could try, in case of a CL program, to RETREAVE the source, using the "RTVCLSRC" command. (The cl must allow this or it isnt possible)

You can then see the source of the program, as it will be put in a sourcefile, which u can browse or even edit (STRPDM opt 3)

Secondly you could try ISDB (interactive Source Debugger)

(STRPDM option 2, find the program and put 34 infront of it.)

If it claims you have not provided enough parameters, just put 34 in front of it again, press F4 and add a parameter (ANY), and keep doing this until the debugger activates.

Then you can see the source of this program, regardless of the type of the program.

(or the command below)
STRISDB PGM(LIBRARYname/PROGRAMname) PARM(parameter1 parameter2 parameter etc....)

If you are new to the AS/400 system:

Take some time to Press F1 on positions you want to learn more about! The AS/400 is one big online dictionary! IF u need information about a certain thing, put your cursor at that location and press F1...

Hope this helps a bit,



Accepted Solution

DjProzac earned 200 total points
ID: 7980465
If it claims you have not provided enough parameters, just put 34 in front of it again, press F4 and add a parameter (ANY), and keep doing this until the debugger activates.

Should be:

If it claims you have not provided enough parameters, just put 34 in front of it again, press F4 then F10 and add a parameter (ANY) on the supplied field, and keep doing this until the debugger activates.

Expert Comment

ID: 7981262
This is relativly easy -

DSPPGM with the program name, qualified if necessary, with the option of how much detail,
DSPPGMREF with the program name - and more information about the program internals are displayed, along with when it was compiled, what source etc.

Try these out at GOB level on an AS400 (IE Green On Black command entry) - if you are authorised to the commands.  If that fails, ask the system operator for their printout.
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Expert Comment

ID: 8006955
-- Mornao --

This does NOT provide information as was asked in the question...

Your suggested solution provides information about the program itself, but not the parameters needed to call the program, only the quantity of parameters needed...

Author Comment

ID: 8013618
Thanks DjProzac! Your advice was very helpful.

Thanks also to Mornao!

Expert Comment

ID: 8015430
Your Welcome :)

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this step by step method when setting up QuickBooks Online. They will allow you to explore the various features of the advanced settings available to you.
The deadly train derailment that occurred recently in DuPont, Washington, raises a lot of questions. It was a new route, the first trip tested with passengers, and the train was travelling at 50 mph over the zone’s speed limit. Could IoT play a role…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question