Help in CL and RPG

0 pts.
Tags:
Application development
CLP
RPG
RPGLE
Hi, I can execute a CL command in an RPG pgm by calling 'QCMDEXC'. But there are certain CL commands that i cannot execute using 'QCMDEXE', what are they? Thanks in Advance Rama krishna
ASKED: April 30, 2007  10:23 AM
UPDATED: April 30, 2007  10:49 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi Rama

The answer to your question is “many and varied”. I don’t think there’s a definitive list, but usually commands that return values won’t work with QCMDEXEC (or any other execution method).

When you create a command (using the CRTCMD command) one of the parameters is ALLOW() which lets you define which modes a command can run in, for example Interactive, Batch, Interactive Program, Batch Program, etc.

If you use the DSPCMD (Display COmmand) on a command you will be able to see which modes it will run in.

Hope it helps

Jonathan

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following