Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us