What problem do you have using ISREDIT in batch? How is the semicolon handled 
in ISREDIT?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Elardus Engelbrecht <[email protected]>
Sent: Thursday, March 28, 2019 7:58 AM
To: [email protected]
Subject: Re: Batch edit of large dataset - Solved

Elardus Engelbrecht wrote:

>I've got a requirement where a single line in large dataset (RECFM=VB or FB 
>and LRECL=<larger than 2048>) needs to be edited/changed in batch. Changed 
>dataset is then to be used in next job steps.

Solved! Whew! ;-)

I am familiar with using ISREDIT MACRO function interactively, so I first tried 
out Alan Young's example in thread 'Re: JCL sample needed' posted on 19 Feb 
2016.

But I have problems to pass the two arguments for the ISREDIT CHANGE command. 
It is easy (after lots of RTFM on KC! ;-D ) to do that interactively, but not 
in batch.

Eventually I discovered Sri h Kolusu's better example in the same thread too!

After some tailoring I get this:

//STEP0100 EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DISP=SHR,DSN=...???...
//SORTOUT  DD DISP=SHR,DSN=...???...
//SYSIN    DD *
  OPTION COPY
  OUTREC FINDREP=(INOUT=(C'Pest',C'Breaker'))
//*

With this, I can change in whole dataset all occurances of 'Pest' to 'Breaker'. 
I (and they who asked me for assistance) don't care for now about the length 
difference after change operation.

Thanks to all who helped offline and online.

And to Sri, you are still amazing with all those magical solutions.

Thanks again!

Groete / Greetings
Elardus Engelbrecht


PS: Someone else posted this, but it is not working (?) even after I did some 
editing and also changed C to CHANGE:

<Exact copy from IBM-MAIN>

//TSO     EXEC PGM=IKJEFT01,REGION=8M,DYNAMNBR=75
//SYSTSPRT DD SYSOUT=*
//SYSTSIN  DD *
PROFILE PREFIX(userid)
EDIT NS28.DATA
V ON
C * 9999999 /NOT SCRTCH/NOT SCRTCH/ ALL
END NOSAVE
DELETE NS28.DATA
LISTD 'SYS1.PARMLIB' M
/*

<end exact copy>

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

Reply via email to