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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Mar 14, 2007 3:52 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Mar 14, 2007 5:21 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts How to display the leading zeros of a... DB2 7
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Capturing logs from spool dd JCL & VSAM 6
Search our Forums:

Back to Top