Why are You using single quotation? Why are You using quotation at all (except for the actual TSO-command) ?
//Lasse -----Ursprungligt meddelande----- Från: IBM Mainframe Discussion List <[email protected]> För Bill Giannelli Skickat: den 2 oktober 2019 11:32 Till: [email protected] Ämne: REXX LISTDSI error I have the following rexx command: ADDRESS TSO 'CALL LISTDSI ( dataset.TXT NORECALL)' ADDRESS TSO 'IF SYSREASON = 9 THEN "HDELETE dataset.TXT WAIT" ELSE "DELETE dataset.TXT"' This keeps returning a RC of -3. processes the rest of the rexx successfully But then leaves the dataset "dataset.txt" as uncataloged. Why would it have an uncataloged dataset? thanks for any help. Bill ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
