Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Passing value to a Control Card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Passing value to a Control Card
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

Moderator


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

PostPosted: Fri Jan 17, 2014 2:27 pm    Post subject:
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    Post subject: Reply to: Passing value to a Control Card
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

Moderator


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

PostPosted: Fri Jan 17, 2014 4:09 pm    Post subject:
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

Site Director


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

PostPosted: Fri Jan 17, 2014 7:52 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us