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
 

 

How to save output at the sdsf ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
cheungne

New User


Joined: 29 Jul 2006
Posts: 16

PostPosted: Wed Aug 23, 2006 1:59 pm    Post subject: How to save output at the sdsf ?
Reply with quote

Dear all,
after i enter sdsf and use st and then select the job, i see the output of my job, but may i know can i save these output to a dataset??

thansk
Back to top
View user's profile Send private message

HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Aug 23, 2006 2:30 pm    Post subject: Re: How to save output at the sdsf ?
Reply with quote

spool are u type xdc then enter . then aske dataset name. where u want to save give the dataset name.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Aug 23, 2006 3:51 pm    Post subject:
Reply with quote

Or from another batch job:
Code:
//OFERICO JOB (),@SDSF,MSGCLASS=X,CLASS=U,NOTIFY=&SYSUID               
//**********************************************************************
//* Issue SDSF commands in batch                                       *
//**********************************************************************
//BSDSF  EXEC PGM=ISFAFD,PARM='++30,256'                               
//ISFOUT   DD SYSOUT=*                                                 
//SYSUDUMP DD SYSOUT=*                                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//ISFIN    DD *                                                         
PRE job-name                                                           
ST                                                                     
FILTER JOBID EQ job-id                                                 
++?                                                                     
FIND 'MSGUSR'                                                           
++S                                                                     
PRINT ODSN 'your.output.dataset' * SHR                                 
PRINT 1 9999                                                           
PRINT CLOSE                                                             
END                                                                     
EXIT                                                                   
/*                                                                     
//   


O.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 02, 2006 6:55 am    Post subject:
Reply with quote

Hi cheungne,

Another very flexible way to do what you want is to enter SE instead of S along side the spool dataset you want. From that point onward you can treat the spool data as you would an ISPF edit dataset. You can:

Selectively cut and paste data from the spool to another PDS member or PS file.

Use the ISPF CREATE command.

Modify the data before you save it to the other file.

Delete lines from the spool dataset and save the result to a file. The data is restored upon exit.

Most things you can do in ISPF Edit you can do in SDSF SE.
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 -> Mainframe Interview Questions 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 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
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm


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