Or use TSO EDIT.

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

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Sri 
h Kolusu [skol...@us.ibm.com]
Sent: Friday, April 21, 2023 12:23 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Edit commands without a macro?

>> Is there a way to do this Edit stuff without a separate macro?

Billy,

If you have access to FILE Manger tool then you can pass the parms as variables 
to job and it will update the file. Here is a simple example

// EXPORT SYMLIST=*
// SET SRCSTRNG='BILLY '
// SET TGTSTRNG='ASHTON'
/*
//STEP0100 EXEC PGM=FILEMGR
//SYSPRINT DD SYSOUT=*
//DDIN     DD DISP=SHR,DSN=Your.input.seq.file.or.pds
//SYSIN    DD *,SYMBOLS=JCLONLY
$$FILEM FCH
C '&SRCSTRNG' '&TGTSTRNG'
/*

Thanks,
Kolusu


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