View previous topic :: View next topic |
Author |
Message |
Martin Beginner
Joined: 20 Mar 2006 Posts: 133 Topics: 58
|
Posted: Tue Mar 06, 2007 2:53 am Post subject: passing date and time parameter to SQL in JCL |
|
|
Hi All,
I have 2 problems here. I need to write a sql in run in which I need to :
- Pass the date as a parameter.
- capture the count ( Num of rows fetched) from the SQL and based on the rows I need to FTP the file.
Here's an example.
Select * from table 1
where date = current date
Is it possible to capture the count from the SQL and ste MAXCC based on the count.
Say if the count > 100 set maxcc=8
Please let me know ..
Thanks,
Mt |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Mar 06, 2007 3:54 am Post subject: |
|
|
What we do is:
In the morning run a job which sets the date for the processing day. This is stored in a file.
Any job for that processing date reads that file to get the date. doesn't matter tehn if it runs before or after midnight. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|