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
 

 

Way to include file tailoring output in next step of JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Nov 20, 2008 9:59 pm    Post subject: Way to include file tailoring output in next step of JCL
Reply with quote

Hi,

Is there any way to include file tailoring output in next step of jcl. My file tailoring output will only be having files names as below.

//DD1 DD DSN=DSN1,DISP=SHR
//DD2 DD DSN=DSN2,DISP=SHR
//DD3 DD DSN=DSN3,DISP=SHR
.
.
//DDX DD DSN=DSNX,DISP=SHR

There all are database related files used to run my application program. It should present in my run program step.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 20, 2008 11:05 pm    Post subject:
Reply with quote

As you can not modify an active JCL, then the answer is NO
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Nov 20, 2008 11:56 pm    Post subject:
Reply with quote

Can you please let me know what is the modification I need to do in JCL?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Nov 21, 2008 1:14 am    Post subject: Reply to: Way to include file tailoring output in next step
Reply with quote

The easiest thing to do is submit a second job from the first.
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Fri Nov 21, 2008 3:35 am    Post subject:
Reply with quote

I cant submit because I need to have all these files names in the second step.
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Fri Nov 21, 2008 4:36 am    Post subject:
Reply with quote

I am purposely using skeleton to have those files depends on some conditon. It is not a JCL. the file tailoring output wll having only the files names to run the program.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Nov 21, 2008 8:11 am    Post subject:
Reply with quote

Hello,

You have a solution in search of a requirement. . . For whatever reason you chose file tailoring. That is not the only way to create/modify jcl.

Many of us have created jcl "depending on some condition" and submitted it via the internal reader. So far, i see no reason that you cannot do the same. Instead of a second step, you would have a second job. . .

Possibly you can explain the file tailoring requirement? Or why the alternative won't work for you.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Nov 21, 2008 9:48 am    Post subject: Reply to: Way to include file tailoring output in next step
Reply with quote

Can you show us what your 'next step JCL' is supposed to look like, if you could build it?
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Sat Nov 22, 2008 10:04 pm    Post subject:
Reply with quote

Thanks for the Help. I am doing by below way.

// JCLLIB ORDER=XXXX.SKELETON.OUTPUT'
//STEP1 EXEC PGM=IKJEFT01..
//.......
//.....
//STEP2 EXEC PGM=XXXXX,PARM=&RRRRR
// INCLUDE MEMBER=DDDDDD
//STEPLIB DD DSN=HLQLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

DDDDDD will be my file tailoring ouput. which will be having file names as below.

//DD1 DD DSN=DSN1,DISP=SHR
//DD2 DD DSN=DSN2,DISP=SHR
//DD3 DD DSN=DSN3,DISP=SHR
.
.
//DDX DD DSN=DSNX,DISP=SHR

Instead of writing it to physical files is it possible to use temp files?
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sat Nov 22, 2008 11:51 pm    Post subject:
Reply with quote

You can use IKJEFT01 in the next step and invoke a Rexx program to parse the output , the allocations and then call the program you were going to call. Of course, if you are going to do this, there is no reason to use file tailoring since you can probably call the step2 program directly in step 1.

If you think you must do it using JCL (and there are reasons that may be true) then as others have sayd, no, you can't dynamically change JCL while the job is running
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Nov 23, 2008 1:06 am    Post subject:
Reply with quote

Hello,

Quote:
Instead of writing it to physical files is it possible to use temp files?
I don't see any temp files in the jcl posted, but if the files are only for this job temp should work. . . . Keep in mind that if you submit job2 from job1, temporary files would not work - they would be available to only job1.

Instead of using the INCLUDE in as is currently coded in step2, you would create this as a complete "new" job and submit it thru the internal reader.

Code:
//xxxxxxxx JOB . . . . .
//STEP2 EXEC PGM=XXXXX,PARM=&RRRRR
//STEPLIB DD DSN=HLQLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//DD1 DD DSN=DSN1,DISP=SHR
//DD2 DD DSN=DSN2,DISP=SHR
//DD3 DD DSN=DSN3,DISP=SHR
.
.
//DDX DD DSN=DSNX,DISP=SHR
All of the jcl would be resolved - there would be no "include".

There are multiple topics in the forum on using the internal reader.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Sun Nov 23, 2008 9:50 pm    Post subject: Reply to: Way to include file tailoring output in next step
Reply with quote

If you are using JCLLIB...

Use file tailoring to get your tailored list of datasets, and also include the static part of your job step and also formatted as a PROC . Put this into the JCLLIB dataset.

In the second step, refer to the newlib created PROC JCL.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Nov 24, 2008 3:59 am    Post subject:
Reply with quote

Hi Pedro,

I maybe misunderstanding what you are saying, but how do you get STEP2 to refer to a PROC created in previous step.


Gerry
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Mon Nov 24, 2008 4:22 am    Post subject: Reply to: Way to include file tailoring output in next step
Reply with quote

I am not sure it is possible to do.

I am not sure how much checking is done ahead of time, but I think they are just member names. Create a new member in one step and refer to it in another step. If that is not possible, then submit another job, as has been recommended several times.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Nov 24, 2008 4:36 am    Post subject:
Reply with quote

Hi Pedro,

PROCS are expanded at soon as the job hits JES2.


Gerry
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 24, 2008 7:57 am    Post subject:
Reply with quote

Hello Jeyaseelan,

Do you have something running yet?

If not, i recommend you go ahead and generate all of the jcl needed for the 2nd process and submit via the internal reader.

How does your current first step know which dd statements to use?
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Tue Nov 25, 2008 10:47 pm    Post subject:
Reply with quote

Thanks for all you replies. Dick can you please send me the piece of code to write the skeleton output to temp files?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Wed Nov 26, 2008 1:25 am    Post subject: Reply to: Way to include file tailoring output in next step
Reply with quote

Quote:
the piece of code to write file tailoring output to temp

It is an option of the FTOPEN service.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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