View previous topic :: View next topic
|
Author |
Message |
Sree Lekshmi
New User
Joined: 24 Dec 2013 Posts: 4 Location: India
|
|
|
|
Hi,
I hve a requirement to run a query in control card in JCL.But the problem is the value to be passed in the where condn in query gets populated by program. Is it any way that i can pass the value to my control card in JCL from program. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Why not DYNAMICALLY create the control card and use it? |
|
Back to top |
|
|
Sree Lekshmi
New User
Joined: 24 Dec 2013 Posts: 4 Location: India
|
|
|
|
Could you please let me know how to DYNAMICALLY create the control card ? |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Use SORT or your program itself to create the query
Search forum for examples |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
Could you please let me know how to DYNAMICALLY create the control card ? |
Here is one way:
First define the query you want to run.
Then write this into some file or member to be used as input to the run. While writing all of the constants, also write the run-time variable(s). |
|
Back to top |
|
|
|