View previous topic :: View next topic
|
Author |
Message |
rajasekar2810
New User
Joined: 22 Apr 2008 Posts: 6 Location: india
|
|
|
|
Hi
While trying to write a Job log to a dataset through a Batch Job am facing few issues.
The Print statement is printing the dataset to job output SYS00001
rather than to a dataset where i want it to be printed.
Can anyone Help me resolve this please.
This is the ISFIN I have issued for the SDSF.
//ISFIN DD *
PREFIX jobname
OWNER *
ST jobname
++ALL
FIND jobname LAST
++S
PRINT
PRINT ODSN 'dataset name'
PRINT CLOSE
END
/* |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It would do, as you issue the PRINT command before the PRINT ODSN statement. |
|
Back to top |
|
|
rajasekar2810
New User
Joined: 22 Apr 2008 Posts: 6 Location: india
|
|
|
|
Still the same error. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
works perfectly for me.
Have you checked for messages in ISFOUT DD ?
Is the file pre-allocated ?
Gerry |
|
Back to top |
|
|
rajasekar2810
New User
Joined: 22 Apr 2008 Posts: 6 Location: india
|
|
|
|
Thanks all
Its problem with the BLK size of the file I have issued and once I changed it all worked fine and thanks all for your valuble inputs on this.
|
|
Back to top |
|
|
|