Could you post the error messages?

Lizette

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
Farley, Peter x23353
Sent: Tuesday, March 9, 2021 10:48 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SORT syntax question

This format of FINDREP's on an INREC command gets a syntax error:

IFTHEN=(WHEN=(13,1,CH,EQ,C'D'),
        FINDREP=(INOUT=(X'00',C' '),
        STARTPOS=01,ENDPOS=34)),
        FINDREP=(INOUT=(X'41',C' '),
        STARTPOS=35,ENDPOS=94)),

What is the correct syntax to find and replace all binary zeroes in
positions 1-34 with spaces and replace all X'41' characters by spaces in
positions 35-94 and do *both* FINDREP's only when position 13 is C'D'?

If It matters, the input is RECFM=FB, LRECL=94.

Peter

This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient or an authorized
representative of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by e-mail
and delete the message and any attachments from your system.

----------------------------------------------------------------------
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

Reply via email to