Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Tool to create JCLs with template JCL and varying parameter.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Tool to create JCLs with template JCL and varying parameter.
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: 1715
Location: UK

PostPosted: Sat Feb 22, 2014 2:09 pm    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Feb 22, 2014 3:34 pm    Post subject: Reply to: Tool to create JCLs with template JCL and varying
Reply with quote

see
here ...
http://www.ibmmainframes.com/viewtopic.php?t=62300&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=60794&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=60392&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=57213&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=55549&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=55028&highlight=ftincl
and here ...
http://www.ibmmainframes.com/viewtopic.php?t=44939&highlight=ftincl
and here ...
http://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: 1715
Location: UK

PostPosted: Mon Feb 24, 2014 12:06 am    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Feb 24, 2014 3:06 am    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Feb 24, 2014 4:36 am    Post subject: Reply to: Tool to create JCLs with template JCL and varying
Reply with quote

see here for a batch snippet

http://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    Post subject:
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: 1715
Location: UK

PostPosted: Sat Mar 01, 2014 1:53 pm    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Mar 01, 2014 3:39 pm    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Mar 01, 2014 3:40 pm    Post subject: Reply to: Tool to create JCLs with template JCL and varying
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we have the varying lenth of ... Gunapala CN DFSORT/ICETOOL 6 Fri Oct 14, 2016 7:31 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us