View previous topic :: View next topic
|
Author |
Message |
bhagyac
New User
Joined: 17 Apr 2008 Posts: 44 Location: bangalore
|
|
|
|
Hi all,
I want to write a tool to do the below activity.
1) I will have a template(model) JCL.
2) I know the changing parameters
3) I will need to create (say) 10 JCL with 10 set of changing parameters.
I don't want to find and replace string and create these 10 JCLs manually.
I have an idea of doing it using REXX.
I want to check if this can be done better by any other option(may using SORT JCL). Please let me know your view and ideas.
Thank you. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
It is done all the time in many different places. Simply create a skeleton, set up the values required for the variables and edit and submit. Repeat n times until done. |
|
Back to top |
|
|
bhagyac
New User
Joined: 17 Apr 2008 Posts: 44 Location: bangalore
|
|
|
|
Do u mean using JCL or using REXX? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Quote: |
Quote:
Do u mean using JCL or using REXX?
the question is pretty useless
it was posted to the REXX section wash' t it ???
|
What is more, JCL cannot do this. Did ou mean to ak if it was to be done in foreground or batch? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
IIRC I posted somewhere the appropriate snippet to do the same in batch |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
bhagyac
New User
Joined: 17 Apr 2008 Posts: 44 Location: bangalore
|
|
|
|
Not sure if I have put my requirement correct.. Let me explain..
My input will be
1) IPDS1 where I will have my template1(PDS member1) code/lines with the varying parameters mentioned as ###1, ####2, etc.
I will have as many template as required.
2) IPS1, will have the template name and the actual values that should be replaced with the ###1, ####2.
My output should be,
3) OPDS1 should have the a new member created using the template1 with the actual values passed in IPS1. I should be creating as many new members with new set of values passed in the IPS1.
4) OPS1 should give me details abt the successful n failed attempts if any.
I want to do this by providing the about I/O to a JCL and getting it through rexx(or any other tool/option if possible. I need ur help to find out the easy way to do this.
Eg.
Code: |
IPDS1(MEM1)
This is ###1 line one
This is line ####2 line two
IPDS1(MEM2)
.....#1......
..............#####2......
...###4.....
IPS1
comments with the structure of the input that should be passed.
/*MEM1 OMEMN ###1 ####2
/*MEM2 OMEMN #1 #####2 ###4
>>MEM1 OMEM1 aaaa bbbbb
>>MEM1 OMEM2 hhhh ddddd
>>MEM2 OMEM3 gg nnnnnn bbbb
>>MEM1 OMEM4 pppppppp cccccc
OPDS1 will have
OMEM1,OMEM2,OMEM3 created with the same lines in the template with the values replaced by the passed values.
OPDS1(OMEM1)
This is aaaa line one
This is line bbbbb line two
OPS1 should have
MEM1 OMEM4 - VALUES NOT MATCHING
|
please let me know ur thoughts..
Thank you. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
I have not the faintest idea what your coded stuff means/represents but it still sounds as if file tailoring is what you may need. Read up on it. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
ISPF file tailoring will do it ...
if You comply with it' s syntax
anything else
YOU ARE ON YOUR OWN
you just made everybody waste his time by posting an incomplete requirement
searching, cut and paste the links ...
are things that take time |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
deleted
clicked on the mouse twice |
|
Back to top |
|
|
|