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

executing particular steps


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 463

PostPosted: Thu Dec 22, 2005 12:05 pm
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

Global Moderator


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

PostPosted: Thu Dec 22, 2005 4:13 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
No new posts Get name of Subsystem routine is exec... All Other Mainframe Topics 2
Search our Forums:

Back to Top