View previous topic :: View next topic
|
Author |
Message |
patriot
New User
Joined: 01 Dec 2006 Posts: 8 Location: chennai
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
patriot
New User
Joined: 01 Dec 2006 Posts: 8 Location: chennai
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
|