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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.


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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
Introducing Priority Question, our latest feature.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 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