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

Passing value to a Control Card


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sree Lekshmi

New User


Joined: 24 Dec 2013
Posts: 4
Location: India

PostPosted: Fri Jan 17, 2014 1:45 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1586
Location: Andromeda Galaxy

PostPosted: Fri Jan 17, 2014 2:27 pm
Reply with quote

Why not DYNAMICALLY create the control card and use it?
Back to top
View user's profile Send private message
Sree Lekshmi

New User


Joined: 24 Dec 2013
Posts: 4
Location: India

PostPosted: Fri Jan 17, 2014 4:04 pm
Reply with quote

Could you please let me know how to DYNAMICALLY create the control card ?
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1586
Location: Andromeda Galaxy

PostPosted: Fri Jan 17, 2014 4:09 pm
Reply with quote

Use SORT or your program itself to create the query

Search forum for examples
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19245
Location: Inside the Matrix

PostPosted: Fri Jan 17, 2014 7:52 pm
Reply with quote

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
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 -> DB2

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Sort card help to prepare status report DFSORT/ICETOOL 13
No new posts PV041 UNEQUAL VOLUME CONTROL CA Products 4
No new posts Control M features to check string in... Compuware & Other Tools 1
No new posts CONTROL-M SCHEDULING DEFINITION FACILITY Compuware & Other Tools 1
This topic is locked: you cannot edit posts or make replies. Passing a field name to COBOL program COBOL Programming 10
Search our Forums:

Back to Top