At 12:59 PM 09/11/2005, Dave Salt wrote:
Steve,

The ^ character should really be a ¬ character; i.e. the character you would see if you hold down the ALT key and type 170 on the numeric keypad. Somehow, the character was translated incorrectly when you downloaded the program. So what you see as:

if  zedlmsg^="" then

Should really be:

if  zedlmsg¬"" then

Where ¬= means 'not equal'. Simply removing the character is NOT advisable as this changes the instruction from 'not equal' to 'equal', which is the exact opposite of what you want!

I was thinking that the ^ symbol may have mean "not" but I couldn't find it defined in any REXX manuals that I came across. Why removing, which indeed changes the logic, made it work properly is beyond me as the routine is a little long to debug at this point.

There are several ways to represent 'not equal' in REXX; e.g. you can use \= or <>.

I shall use your suggestions.


Hope that helps,

It sure did and thanks to everyone who responded.

Dave Salt
SimpList(tm) - The easiest, most powerful way to surf a mainframe!
http://www.mackinney.com/products/SIM/simplist.htm





From: "Stephen M. Wiegand" <[EMAIL PROTECTED]>
Reply-To: IBM Mainframe Discussion List <[email protected]>
To: [email protected]
Subject: REXX Question
Date: Sun, 11 Sep 2005 12:06:38 -0400

List,

I downloaded from http://www.mainframeweek.com/journals/articles/0080/A+REXX+program+to+list+GDG+information a handy little REXX program. In the program were the following lines:

if  zedlmsg^="" then

if  left(j2g_data,4)//4^=0 |,

if  rc^=0 then

In all cases, when I issue a TSO GDG filename, TSO complained about these statements. Since I didn't recognize what the ^ character was supposed to do, I deleted it from all 3 statements and the program ran fine and produced expected results.

But just in case, does anyone know what the ^ is supposed to represent? My search in REXX documentation has been futile.

Thanks.

Steve Wiegand

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to