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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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