Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Batch SDSF and sj

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Sun Jan 25, 2009 7:24 pm    Post subject: Batch SDSF and sj
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Sun Jan 25, 2009 7:38 pm    Post subject: Reply to: Batch SDSF and sj
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
http://www.redbooks.ibm.com/abstracts/sg247419.html
Back to top
View user's profile Send private message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Sun Jan 25, 2009 9:02 pm    Post subject: Re: Reply to: Batch SDSF and sj
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
http://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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Sun Jan 25, 2009 9:47 pm    Post subject: Reply to: Batch SDSF and sj
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
http://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
http://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: 8617
Location: Back in jolly old England

PostPosted: Mon Jan 26, 2009 12:21 am    Post subject:
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

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Mon Jan 26, 2009 1:25 am    Post subject: Thanks for the confirmation SJ isn't supported.
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

Active User


Joined: 12 Jul 2006
Posts: 154
Location: USA

PostPosted: Mon Jan 26, 2009 1:34 am    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Jan 26, 2009 11:31 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 6 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us