MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Execute a proc based on the input record count

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Wed Jul 09, 2008 2:48 am    Post subject: Execute a proc based on the input record count Reply with quote

Hi all,

My input is FTP'ed to M/F. I need to excute a proc based on the number of records in the input.
Example if my input is having 2 records my proc will excute two times. How can i achive this.

Thanks in advance.
Kavi
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jul 09, 2008 6:54 am    Post subject: Reply with quote

The program that reads your input to determine the record count will have to then output the proper job with all of the necessary number of job steps defined.
Back to top
View user's profile Send private message
kavi
Beginner


Joined: 15 Sep 2006
Posts: 64
Topics: 22

PostPosted: Thu Jul 10, 2008 6:06 am    Post subject: Reply with quote

Thanks superk

My input record count dynamically changed. Can you please explain this in more detail. May be with an example.

Thanks in advance,
Kavi
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jul 10, 2008 12:15 pm    Post subject: Reply with quote

Create a program that will create your job. Use your FTP file as input to the program. As you read each record then add a proc to the job. Either write your job to the internal reader or, better, to an output file and submit it from there.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group