30 pts.
 Invoking A Menu Option From Within A Pgm
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
ASKED: February 4, 2010  11:22 AM
UPDATED: February 5, 2010  1:37 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  February 4, 2010  3:04 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts. , DanTheDane   2,540 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 44,190 pts.