View previous topic :: View next topic |
Author |
Message |
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Wed Jul 09, 2008 2:48 am Post subject: Execute a proc based on the input record count |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jul 09, 2008 6:54 am Post subject: |
|
|
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 |
|
|
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Thu Jul 10, 2008 6:06 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Jul 10, 2008 12:15 pm Post subject: |
|
|
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 |
|
|
|
|