IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Tool to create JCLs with template JCL and varying parameter.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Sat Feb 22, 2014 1:48 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Feb 22, 2014 2:09 pm
Reply with quote

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
View user's profile Send private message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Sat Feb 22, 2014 2:26 pm
Reply with quote

Do u mean using JCL or using REXX?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Feb 22, 2014 3:34 pm
Reply with quote

see
here ...
www.ibmmainframes.com/viewtopic.php?t=62300&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=60794&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=60392&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=57213&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=55549&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=55028&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=44939&highlight=ftincl
and here ...
www.ibmmainframes.com/viewtopic.php?t=42154&highlight=ftincl
and here ...
and here ...
and here ...
and here ...

and if You had searched the forum You would have found out Yourself

PS. the links posted are relate to the token FTINCL
and are posts I replied to...
some of them have working snippets, some just suggestions
lurk and search more Yourself

PS.(2)
Quote:
Do u mean using JCL or using REXX?

the question is pretty useless
it was posted to the REXX section wash' t it ???
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Feb 24, 2014 12:06 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 24, 2014 3:06 am
Reply with quote

IIRC I posted somewhere the appropriate snippet to do the same in batch icon_wink.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 24, 2014 4:36 am
Reply with quote

see here for a batch snippet

ibmmainframeforum.com/viewtopic.php?f=9&t=8934&hilit=ftincl
Back to top
View user's profile Send private message
bhagyac

New User


Joined: 17 Apr 2008
Posts: 44
Location: bangalore

PostPosted: Sat Mar 01, 2014 8:38 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Mar 01, 2014 1:53 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Mar 01, 2014 3:39 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Mar 01, 2014 3:40 pm
Reply with quote

deleted
clicked on the mouse twice
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top