Will,
I think what you are trying to do is
SW0 ON IS SORT-BY-SUBJECT
then do your 'IF' statement.
Hope this helps.
John.
John Confield
EDS Energy Upstream, Aberdeen
* [log in to unmask]
( 01224 422415
Fax: 01224 312015
http://www.eds.com
>----------
>From: Will Townsley[SMTP:[log in to unmask]]
>Sent: 24 July 1998 15:26
>To: [log in to unmask]
>Subject: Cobol Switch - Help
>
>I am trying to use a cobol switch (what is called an UPSI switch in IBM)
>for the first time on HP and must be doing something incorrectly. I
>have entered the following under special names:
>
>SW0 IS SORT-SWITCH ON IS SORT-BY-SUBJECT
>
>In the program logic, the following is coded:
>
>IF SORT-BY-SUBJECT
> (DO THE SORT BY SUBJECT)
>ELSE
> (DO THE SORT ANOTHER WAY).
>
>In the run statement is the following:
>
>RUN WRT001O.SMC.COLLEGE;PARM=%1000000
>
>Can you see anything wrong here?
>