Menu script

Jean-Pierre A. Radley appl at jpr.com
Mon Jan 3 14:03:06 PST 2005


Dennis Malen propounded (on Mon, Jan 03, 2005 at 04:56:36PM -0500):
| The following menu script is currently being used:
|
| /appl/fp/ddir msx.served -k rclerk msx.served -s1 -z "addfile" rreport
| /appl/fp/msx.served -f import -a -h "Import AOS"
|
| The first line deletes the data from the file and then goes on to
| import new information into the file.
|
| I want to avoid having someone request that the data should be removed
| accidentally. I want to place a new first line that checks the file
| and determines whether it should be deleted and then import the new
| info. The processing to check the file is easy.
|
| The problem is, if I do not want the continue how do I avoid going to
| the next line. I can use "exit" from the processing but that will take
| me to the next line. How do I go back to the menu without continuing
| with the processing script if certain criteria to continue have not
| been met.

Instead of just 'exit', use 'exit exitvalue'; in your script, test
exitvalue and proceed accordingly.


-- 
JP


More information about the Filepro-list mailing list