View previous topic :: View next topic
|
Author |
Message |
mambopras
New User
Joined: 11 Nov 2008 Posts: 52 Location: Hyderabad
|
|
|
|
Hi,
I have a PDS containing many JCL members along with other type of members (sort cards etc). I have a requirement to replace a single line of all the JCL members with 5 lines: Example is as given below
// SET SMTX=XR is the line that needs to be repalced by
// SET SMTA = '01'
// SET SMTB = '02'
// SET SMTC = '03'
// SET SMTD = '04'
// SET SMTE = '05'
I have tried doing this using 'FIND/CHANGE' utility (online) in FM but I get an error quoting 'Too many parameters' - Even the batch version is not allowing this.
Can somebody help me in meeting this requirement ? Thanks for your help!!! |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Search on ISREDIT macros
There are many examples on this forum |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You will have to write an edit macro to do it..
there are quite a few samples around in the forums |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
If you could use:
Code: |
// SET SMTA=01,SMTB=02,SMTC=03,SMTD=04,SMTE=05 |
That would make it easier, no?
Oh, wait... You can!!! |
|
Back to top |
|
|
mambopras
New User
Joined: 11 Nov 2008 Posts: 52 Location: Hyderabad
|
|
|
|
Enrico, Escapa
Thank you for the suggestion, I will search the forums more for the sampels
Marso,
The one I had given was just an example (as quoted) - the actual content is different. But the final thing to achieve is to replace one line by five lines!! However thank you for the suggestion, I would remember this while replacing any SET statements in future!!! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
the actual content is different. |
What a waste of people's time. . .
There is no good reason to post something other than what is needed. If the "real" values should be protected - fine - subsittute something similar. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
In that case, I will rephrase:
You still can use FIND/CHANGE without the need to add new lines if you use, FOR EXAMPLE
Code: |
C 'SMTX=XR' 'SMTA=01,SMTB=02,SMTC=03,SMTD=04,SMTE=05' |
If that string is too long to fit in the command line, you can use any trick you want like, FOR EXAMPLE
Code: |
C 'SMTX=XR' 'SMTA=01,SMTB=02,SMTC=03,@@X'
C '@@X' 'SMTD=04,SMTE=05' |
Of course, you can add parameters to the CHANGE command, FOR EXAMPLE:
Code: |
ALL FIRST NEXT PREV WORD |
and so on. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Does your shop have Jobscan installed? It's what runs if you enter "JEM" to check your JCL.
It has a really nice batch JCL editor built in that can do EXACTLY what you're looking for. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Ed Goodman wrote: |
Does your shop have Jobscan installed? It's what runs if you enter "JEM" to check your JCL.
It has a really nice batch JCL editor built in that can do EXACTLY what you're looking for. |
The same is true of JCLPREP. Beware, however; the control language for JPEDMCR (the JCLPREP batch editor) is a programming language in itself, and not to be mastered by asking a few questions in a forum such as this. I haven't been at a shop that used JOBSCAN in nearly a decade, and do not recall if the same is true of it or not. |
|
Back to top |
|
|
|