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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm


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