Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
executing particular steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gayathrivenkatachalam

New User


Joined: 16 Apr 2005
Posts: 5
Location: india

PostPosted: Thu Dec 22, 2005 10:08 am    Post subject: executing particular steps
Reply with quote

hi,

i have a jcl query


The requirement is as follows,

*************************************************************


1. I can have up to 5 nos. of input datasets


(I know the actual name of all the five input datasets but not sure about how many files are actually existing)
*************************************************************
now i have written a cobol program which will create one output dataset for each input dataset.

My run jcl is having 5 steps with the same program being executed in each step. the only difference is that the DSN of the input and the output datasets is going to change in each step.

Here are the Issues,

1.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names?


2.also suppose i have only 3 input datasets which are actually present and i need to execute only the corresponding steps which use the particular datasets as input. How to handle this situation?
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Dec 22, 2005 12:05 pm    Post subject: Re: executing particular steps
Reply with quote

HI,

Quote:
.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names?


As per my knowledge, it is not possible thru JCL.

Regards
Rupesh
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Dec 22, 2005 4:13 pm    Post subject: Re: executing particular steps
Reply with quote

gayathrivenkatachalam wrote:
1.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names?

Yes. Search the forums for examples of calling the BPXWDYN program.

gayathrivenkatachalam wrote:
2.also suppose i have only 3 input datasets which are actually present and i need to execute only the corresponding steps which use the particular datasets as input. How to handle this situation?

Again, search the forums. There are many examples of how to check for non-existing datasets using the IDCAMS program.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us