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

To read sql Query through Control card


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 13
Location: Bombay

PostPosted: Wed Jan 06, 2010 7:23 pm
Reply with quote

Hi,

I need to use SQL Query through the control card to execute the job, Plz help me on same, How can i use it.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jan 06, 2010 7:26 pm
Reply with quote

Quote:
I need to use SQL Query through the control card to execute the job, Plz help me on same, How can i use it.


Ok for the language barrier, but really it is impossible to parse the above sentence in any understandable fashion!

think carefully what You requirements are and post/reword them in a more understandable way

please help those willing to help You
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jan 06, 2010 9:00 pm
Reply with quote

Control-card is a very generic term - different individuals will anticipate it differently. I need to agree with enrico, however, being from a non-english back-ground I hear that jiberish every day so will try to answer...

If you are using DSNTIAUL with IKJEFT01 and because PROCs can not have in-stream data and some oen asked you to write the query in some member of PDS (control-card) then you can write your-query statements in a member of PDS (LRECL=80) and refer that to in sysin for a JCL of this nature.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jan 06, 2010 9:00 pm
Reply with quote

And if that is not what you are looking for - GO TO post from enrico.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jan 06, 2010 10:05 pm
Reply with quote

It is very possible to read a select statement from a file or sysin (no difference which you use), prepare it as a dynamic sql statement and execute it. I have a program that does just that to produce comma and tab delimited files for our use. It takes a very deep understanding of COBOL and data formats to do it. I wrote the program several years ago and we use it a hundred times a day in production and test. No i will not share it, my employer pays me for my knowledge and skills.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts RC query -Time column CA Products 3
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
Search our Forums:

Back to Top