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
 

 

Display one of the selected fields in the spool(in Sysout

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
patriot

New User


Joined: 01 Dec 2006
Posts: 8
Location: chennai

PostPosted: Wed Mar 14, 2007 3:15 pm    Post subject: Display one of the selected fields in the spool(in Sysout
Reply with quote

I am using a card which has the select query and my jcl takes that card as input and runs. Now i have to display one of the selected fields in the spool(in Sysout). Is it possible?
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Mar 14, 2007 3:52 pm    Post subject:
Reply with quote

I dint your get post properly. But this may help you.

Does your JCL is creating OP file? If yes, replace the OP dsn=..... with sysout=*.
Back to top
View user's profile Send private message
patriot

New User


Joined: 01 Dec 2006
Posts: 8
Location: chennai

PostPosted: Wed Mar 14, 2007 4:55 pm    Post subject:
Reply with quote

Thanks.But the following select query is an example to print the selected field into spool or O/P file:
SELECT '===RECORDS BEFORE '
|| CHAR(DATE(CURRENT_DATE - 396 DAY))
|| ' WERE DELETED=== ' FROM SYSIBM.SYSDUMMY1;

The O/P display in ur sysout/File will be:
===RECORDS BEFORE 02/11/2006 WERE DELETED===
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Mar 14, 2007 5:21 pm    Post subject: Re: Displays in JCL
Reply with quote

patriot wrote:
I am using a card which has the select query and my jcl takes that card as input and runs. Now i have to display one of the selected fields in the spool(in Sysout). Is it possible?
Why do you think it is not possible?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm


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