Invoking A Menu Option From Within A Pgm

30 pts.
Tags:
AS/400 programming
CL Program
CL programming
Our Operations dept type the command [Go Backup] and take option 1

Is it possible to automate these actions from within a CL pgm?

Thanks

Martin



Software/Hardware used:
AS400, iSeries

Answer Wiki

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

If all you really want to do is avoid ‘GO BACKUP’ and selecting option 1 then in your CLP code ‘GO RUNBCKUP’.

If you want to automate options 1, 2, or 3 of the RUNBCKUP menu then use the RUNBCKUP command documented <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/runbckup.htm”>here</a>.

If you literally want the CLP to “type in” GO BACKUP, Enter, 1, Enter, etc then contact me directly if you have any interest in using a commercial product.

Bruce Vining
<a href=”http://www.brucevining.com/”>Bruce Vining Services</a>

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

Yes, it is possible if you create your own commands. The IBM poster ‘Are You Saving The Right Stuff?’ shows you commands and menu-options. look here to se the poster:
<pre> http://wiki.midrange.com/index.php/Are_You_Saving_The_Right_Stuff%3F </pre>
or, Google the poster’s title ”Are You Saving The Right Stuff?’ .

happy coding
Dan

Discuss This Question: 1  Reply

 
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
  • philpl1jb
    No you don't need the menu -- option 1 on the backup menu was issuing a command. It may show on the right of the menu or if you take 1 it will probably go to the command screen. Your CL should issue that command not call the menu. Phil
    49,550 pointsBadges:
    report

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