So let me post the code SET &SYSSCAN = 2 SET LINE = &NRSTR(&&SYSOUTLINE1) SET &SYSSCAN = 16 SET LINE1 = &STR(&LINE) SET KEYWORD = &SUBSTR(50:54,&LINE1) IF &KEYWORD = OPEN /* HERE IS WHERE THE ERROR OCCURS IF KEYWORD IS '*' */
. . -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of CM Poncelet Sent: Thursday, July 7, 2016 12:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Character data returned from &STR &NRSTR will not necessarily work. If so, use SYSSCAN (its default value is 16). E.g. SET SYSSCAN = 2 /* note: 0 will interpret all &'s as data including &NRSTR; set it to 1, 2 or 3 etc. as appropriate */ <your &NRSTR code> SET SYSSCAN = 16 CP Lizette Koehler wrote: >And if that does not work, then show the code you are using. > >Include how you set the variable, >What the variable contains, >And what you are using for &STR( ) > >CONLIST, SYMLIST, LIST is helpful. > >Lizette > > > > >>-----Original Message----- >>From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] >>On Behalf Of Lizette Koehler >>Sent: Wednesday, July 06, 2016 2:31 PM >>To: IBM-MAIN@LISTSERV.UA.EDU >>Subject: Re: Character data returned from &STR >> >>So you may also want to join, if you have not done so, the TSO REXX >>list. We speak CLIST There. >>TSO REXX http://www2.marist.edu/htbin/wlvindex?TSO-REXX >>Go to bottom of webpage to join >> >> >>Try using &NSTR >> >>Lizette >> >> >> >> >>>-----Original Message----- >>>From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] >>>On Behalf Of Joseph Reichman >>>Sent: Wednesday, July 06, 2016 12:49 PM >>>To: IBM-MAIN@LISTSERV.UA.EDU >>>Subject: Character data returned from &STR >>> >>>Hi >>> >>>Is there anyway to check that &STR converted the variable in question >>>to valid characters >>> >>>After the &STR if do a compare in which case the variable had an '*' >>>and I am getting "expression with operators out of sequence >>> >>> >>> > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, send >email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN