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
 

 

SDSF output to a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rajasekar2810

New User


Joined: 22 Apr 2008
Posts: 6
Location: india

PostPosted: Mon Apr 20, 2009 3:43 pm    Post subject: SDSF output to a dataset
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 20, 2009 3:48 pm    Post subject:
Reply with quote

It would do, as you issue the PRINT command before the PRINT ODSN statement.
Back to top
View user's profile Send private message
rajasekar2810

New User


Joined: 22 Apr 2008
Posts: 6
Location: india

PostPosted: Mon Apr 20, 2009 3:55 pm    Post subject: Reply to: SDSF output to a dataset
Reply with quote

Still the same error.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Apr 21, 2009 10:08 am    Post subject:
Reply with quote

Hi,

works perfectly for me.

Have you checked for messages in ISFOUT DD ?


Is the file pre-allocated ?



Gerry
Back to top
View user's profile Send private message
rajasekar2810

New User


Joined: 22 Apr 2008
Posts: 6
Location: india

PostPosted: Tue Apr 21, 2009 10:20 am    Post subject:
Reply with quote

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.

icon_biggrin.gif
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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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