Using a command line in a display file in RPG

20 pts.
Tags:
iSeries command line
RPG
RPG Display File
Can I create a display file with a command line in it using RPG?
ASKED: January 12, 2010  8:55 PM
UPDATED: January 13, 2010  10:02 PM

Answer Wiki

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

Quick and dirty is to make a large field and then call QCMDEXC for whatever a user puts in the field.

Why give them a command line in the 1st place?

=========================================================

Alternatively, add a function key that simply causes CALL QSYS/QUSCMDLN. No need to handle much of anything in code with that. It’s a live command line that does essentially all of the work for you. The F-key can be enabled/disabled in whatever ways you choose.

More completely, have the F-key call a CL wrapper program that calls QUSCMDLN. Compile it and set its attributes as USRPRF(*USER) USEADPAUT(*NO). You want to ensure that no adopted authority gets snuck down to the command line.

Tom

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