IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Batch SDSF and sj


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Sun Jan 25, 2009 7:24 pm
Reply with quote

Can you use sj in batch sdsf?

I've looked and read and can't find an example or a reference that says it doesn't work. I've tried too and can't get it to work.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jan 25, 2009 7:38 pm
Reply with quote

use a bit of logic please....
what is the meaning of sj ( answer provided for clarity )
Quote:
... to put you in an ISPF edit session for the JCL. ...
and... the consequence is ....

for suggestions and samples about rexx and batch sdsf see
www.redbooks.ibm.com/abstracts/sg247419.html
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Sun Jan 25, 2009 9:02 pm
Reply with quote

enrico-sorichetti wrote:
use a bit of logic please....
what is the meaning of sj ( answer provided for clarity )
Quote:
... to put you in an ISPF edit session for the JCL. ...
and... the consequence is ....

for suggestions and samples about rexx and batch sdsf see
www.redbooks.ibm.com/abstracts/sg247419.html


enrico-sorichetti,

Was that a shot? I suppose I'm deserving of shots. And, well, you are senior in this forum icon_smile.gif

Sure that's the purpose of SJ. Following that line I suppose the meaning of SE be to put you in an ISPF edit session for the spool? So I figure if ++SE works ++SJ does and I just can't figure it out.

This is for a process to capture information about ad hoc jobs run in test so that for archive purpose we have a record of the job as it ran. Currently it captures the spool information and it would be nice if ++SJ would work as well as the change to the existing process would be very minimal.

I have a work around that gives the job as it ran 99% of the time and am OK with using it. I figured I'd ask here to see if SJ was supported and I missed it.

These ad hoc jobs aren't mission critical or they'd run in production. But a nice to have would be if ++SJ could replace ++SE in the code below and work. Or if a different set of commands to sdsf in batch mode would accomplish the same thing.

I've seen the link you posted and while this process doesn't use rexx I looked through it anyway. It says SJ is not supported in rexx but I haven't seen any reference that speaks to whether SJ is supported in batch sdsf as SE seems to be since the below code works.

Code:

SET CONFIRM OFF     
PREFIX jobname   
OWNER *             
DA                 
++ALL               
RESET               
FIND jobname LAST
++SE                 
RESET               
PRINT FILE REPORT   
PRINT               
PRINT CLOSE         
END                 
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jan 25, 2009 9:47 pm
Reply with quote

that was not a shot, just simple logic, from the jcl being used,
and an invitation to use a bit of deductive logic....

what does the manual say about the jcl to be used
what does the jcl look like,
what libraries are there

You invoke sdsf batch by ...
//sdsf exec pgm=sdsf, or isfafd
as the manual says
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/isf4cs70/11.1?SHELF=ISF4BK70&DT=20070504104256&CASE=

and there are none of the libraries used by IPSF

You do not run under tso, nor under ispf, so ....
even under TSO You can run sdsf as a TSO COMMAND,
and in that case all the ISPF related facilities will not be available

anyway the manual is clear
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/isf4cs70/11.2.1?SHELF=ISF4BK70&DT=20070504104256&CASE=
see the last line
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 26, 2009 12:21 am
Reply with quote

Why not just retain the JCL (JESJCL ??? element of the output - can't recall it exactly as I'm not at work) and if the need arises a few seconds of brainpower will reconstruct the JCL.
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Mon Jan 26, 2009 1:25 am
Reply with quote

That's the trouble with me and manuals. Sometimes I don't get the clear part. I saw the last line and wondered, "Does that means SJ isn't supported?"
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Mon Jan 26, 2009 1:34 am
Reply with quote

expat wrote:
Why not just retain the JCL (JESJCL ??? element of the output - can't recall it exactly as I'm not at work) and if the need arises a few seconds of brainpower will reconstruct the JCL.

That's the solution that's in place. The issue is it takes some time to reconstruct the jcl and sometimes the time I have to reconstruct them is less than others or will get me home sooner. So I want to keep the job as it ran, too. Depending upon the time of year the few minutes required to reconstruct a few ad hoc jobs again could make a noticeable difference in the day.

I just made a wrapper that submits the job so there will be a copy of what was submitted without needing to reconstruct it as well as the spool, too. It serves the need but if SJ was supported it would have been a bit cleaner.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 26, 2009 11:31 am
Reply with quote

As far as I know, the SJ command invokes the ISPF service EDIF.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 0
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top