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

Report after SQL query in Control card


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

New User


Joined: 24 May 2010
Posts: 92
Location: Pune

PostPosted: Wed Sep 18, 2013 9:59 am
Reply with quote

Hi,

I am trying to have the below in the control card which will be executed thru jcl -

SELECT COL1, COL2, COL3 FROM TABLE A WHERE COND

REPORT FORMAT -

-----REPORT HEADER-----
COL1
COL2
COL3
-----REPORT TRAILER-----DATE

Please let me know how should I mwrite a report through control card in jcl after sql query is executed and I don't have access to QMF.

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Sep 18, 2013 6:39 pm
Reply with quote

Hello,

Suggest you use some kind of code to do what you want.

Keep in mind the SQL is not meant to be a reporting tool.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


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

PostPosted: Wed Sep 18, 2013 8:29 pm
Reply with quote

Hi ,

Is COL1,COL2,COL3 are of same datatype & length ??
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
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 Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top