Menu script
Dennis Malen
dmalen at malen.com
Mon Jan 3 15:24:31 PST 2005
Jean-Pierre,
Can you give me an example of what you mean? I am not grasping how that will
skip the subsequent lines.
Dennis
----- Original Message -----
From: "Jean-Pierre A. Radley" <appl at jpr.com>
To: "FilePro Mailing List" <filepro-list at seaslug.org>
Sent: Monday, January 03, 2005 5:03 PM
Subject: Re: Menu script
> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
More information about the Filepro-list
mailing list