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 Batch Retrieval Error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Thu Aug 16, 2012 12:35 pm    Post subject: SDSF Batch Retrieval Error
Reply with quote

Hi,

im new to SDSF, i want to xdc the job information to a dataset. so i used this following code.
Code:
Code:
//XDCEDITP JOB (CTSXDC),'XDC JOB',CLASS=3,MSGCLASS=H
//S010     EXEC PGM=SDSF                           
//SYSOUT   DD SYSOUT=*                             
//ISFOUT   DD DUMMY                                 
//ISFIN    DD *                                     
OWNER N2XXXXX                                       
PREFIX EDITJOB                                     
ST                                                 
SORT JOBID D                                       
ST                                                 
FIND EDITJOB                                       
++S                                                 
PRINT ODSN XXX.XXX.N2XXXX.XDC(EDITJOB)             
PRINT                                               
PRINT CLOSE                                         
END                                                 
//*                                                 


the above code is working for some jobs and for some jobs it is not taking xdc in specified dataset instead of that it is taking XDC in the job sysout ex: "SYS00003".
in SYS00003 all the "EDITJOB" spool informations are copied.

Code'd
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Thu Aug 16, 2012 12:44 pm    Post subject: Reply to: SDSF Batch Retrieval Error
Reply with quote

If you have two different questions, please don't give them the same Subject. Please also note that your posts have been Code'd for readability and use this feature in future here.
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Thu Aug 16, 2012 1:20 pm    Post subject:
Reply with quote

yes i do tfs
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 2:44 pm    Post subject:
Reply with quote

ezio vin wrote:
yes i do tfs
What is this saying/asking! icon_neutral.gif
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Thu Aug 16, 2012 2:58 pm    Post subject:
Reply with quote

i just mentioned thanks for sharing information in short form (tfs) icon_biggrin.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 16, 2012 3:18 pm    Post subject:
Reply with quote

ezio vin wrote:
i just mentioned thanks for sharing information in short form (tfs) icon_biggrin.gif


wicbbpagrorgyaabyasaa.

you are right, much easier to communicate with just the first letter
of most of the words.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 3:31 pm    Post subject:
Reply with quote

IWATKTSF!

Try this:
Code:
//BSDSF  EXEC PGM=SDSF                                       
//ISFOUT   DD SYSOUT=*                                       
//SYSUDUMP DD SYSOUT=*                                       
//SYSPRINT DD SYSOUT=*                                       
//SYSTSPRT DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*                                       
//ISFIN    DD *                                               
 ST                                                           
 FILTER JOBID EQ JOBID                                     
 F myjobnm                                                   
 ++?                                                         
 FIND 'myjobdd'                                                 
 ++S                                                         
 PRINT ODSN 'myracfid.SDSF' * OLD                             
 PRINT 1 9999                                                 
 PRINT CLOSE                                                 
 END                                                         
 EXIT                                                         
/*   
in this you need to replace the symbolics (myjobdd, myracfid etc) with appropriate values.

Above works for me, in case you need to work with the Job you've posted, please show us the ISFOUT of the Job you submit. I'm not sure, why do you DUMMY it out.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 3:35 pm    Post subject:
Reply with quote

By the way, your Job is 'SDSF in Batch'. You've named a PDS ending with XDC, but that does not mean you "issue an XDC". The command which copies the DD name in the specifed Data-Set is "PRINT ODSN".

And, per your post, do you make sure that the job you look for, using Batch SDSF, have a DD name as "EDITJOB"?


Just for fun -- "XDC" means "print and close". I recall of a discussion where in one asked, what in the heaven "X" stands for and in "print and close" where is "D" lost. As far I can recall, X stands for eXport (or Print) - They couldn't use P because that means 'Purge output'.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 16, 2012 7:12 pm    Post subject:
Reply with quote

Hello,

Possibly "eXport to Dataset, Close"?

IIRC, this is the shortcut form of issuing:
PRINT ODSN
PRINT
PRINT CLOSE
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 7:28 pm    Post subject:
Reply with quote

Dick - you made me to search this: 3.22 Action Characters on the SDSF Panels. icon_smile.gif

Regards,
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Thu Aug 16, 2012 10:30 pm    Post subject:
Reply with quote

FWIW, here is a bare-bones Rexx that archives SDSF output to a PDS using the Rexx / SDSF interface:
Code:
/* Rexx program to copy job output from SDSF to a PDS  */       
/* Demonstration only:  not for real use               */       
/*                                                     */       
ISFrc = isfcalls("ON")                                           
isfprefix = "*"                                                 
isfowner  = "your userid "                                           
address SDSF "isfexec st (delayed"                               
ISFPRTDSNAME = "'any suitable PDS'"                     
ISFPRTDISP   = "SHR"                                             
do i = 1 to isfrows                                             
   ISFPRTMEMBER = jobid.i                                       
   say "Adding: " ISFPRTMEMBER                                   
   address sdsf "isfact st token('"token.i"') PARM(NP XDC)"     
   say isfmsg                                                   
end                                                             
ISFrc = isfcalls("OFF")                                         
exit                                                             
Please note that is is a proof of concept and is not an example of recommended Rexx coding techniques.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Aug 17, 2012 11:43 am    Post subject:
Reply with quote

In fact the same user has a REXX question also on the "same" problem: http://www.ibmmainframes.com/viewtopic.php?t=59183&highlight= icon_confused.gif
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Aug 17, 2012 9:25 pm    Post subject: Reply to: SDSF Batch Retrieval Error
Reply with quote

Quote:
"XDC" means "print and close"


I asked for an enhancement to SDSF: a print control panel with the ability to allocate the dataset if not already. They started to discuss what to call this new SDSF command, but a person on the phone said that sometimes they waste hours debating what to call things and it is a waste of time. "We will just call it XDC". Everyone scratched their heads but moved on to the next topic. At the time, my impression was that it was random characters.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Aug 18, 2012 10:23 am    Post subject:
Reply with quote

That's interesting Pedro.

I had sent you a PM some time back, please check.

Regards,
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Thu Aug 23, 2012 1:04 pm    Post subject:
Reply with quote

Sorry for the late reply.

i tried your code its working fine thank you so much. icon_smile.gif

im attaching the code which i used to take XDC .

Code:
//TESTXXXX JOB (24363),'N. C. SCHG DTL LST',CLASS=3,MSGCLASS=H,
//     NOTIFY=&SYSUID                                         
//BSDSF  EXEC PGM=SDSF                                         
//ISFOUT   DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//SYSPRINT DD SYSOUT=*                                         
//SYSTSPRT DD SYSOUT=*                                         
//SYSOUT   DD SYSOUT=*                                         
//ISFIN    DD *                                               
 ST                                                           
 FILTER JOBID EQ JOB31770                                     
 F TEST815M                                                   
 ++S                                                           
 PRINT ODSN 'GRT.CTS.NXXXXXX.JCL(XXX1)'                       
 PRINT 1 9999                                                 
 PRINT CLOSE                                                   
 END                                                           
 EXIT       


thanks Anuj Dhawan
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 23, 2012 2:55 pm    Post subject:
Reply with quote

Glad you got it working!
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2012 6:38 pm    Post subject: Reply to: SDSF Batch Retrieval Error
Reply with quote

Good to hear you have what you need working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Fri Aug 24, 2012 5:56 pm    Post subject:
Reply with quote

if im executing more than 2 XDC jobs same time im getting this error in ISFOUT.

Code:
SDSF OUTPUT DISPLAY CSP2010  JOB01802  DSID     2 LIN  ALLOC ERROR  02100000 
COMMAND INPUT ===>  PRINT ODSN 'GXX.XXX.XXXXXXX.XXX(CSP2010)' SCROLL ===> PAGE
 IKJ56225I DATA SET GXX.XXX.XXXXXXX.XXX ALREADY IN USE, TRY LATER+
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Aug 24, 2012 6:21 pm    Post subject:
Reply with quote

Quote:
IKJ56225I DATA SET GXX.XXX.XXXXXXX.XXX ALREADY IN USE, TRY LATER+
Does this give you a hint?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Aug 24, 2012 6:31 pm    Post subject: Reply to: SDSF Batch Retrieval Error
Reply with quote

certainly not, why ask otherwise ??? icon_cool.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
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm


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