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
 

 

Running SDSF in Batch

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 1:03 pm    Post subject: Running SDSF in Batch
Reply with quote

Hi,

My requirement is to dump the details of a “dd” of a jobid:

I tried to achieve this in batch SDSF ,


//BSDSF EXEC PGM=SDSF
//ISFIN DD *
ST
OWNER USERID
PRE USERID*
FILTER JOBID EQ JOB39199
FIND JOB39199
++?
FIND <ddname >
++S
PRINT ODSN 'MYOUT.SAMPLE.OUTPUT' * OLD
PRINT 1 9999
PRINT CLOSE
END
EXIT
//ISFOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*


But , I am not getting the sysout details of the jobid JOB39199 in the dataset 'MYOUT.SAMPLE.OUTPUT'. I got rc 0 but the file is empty.


Please help me on this!
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 1:06 pm    Post subject:
Reply with quote

You will have to trace the results of your SDSF commands. Take a look at ISFOUT and see how SDSF responed to each command.

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 1:18 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi,


i can see only the SDSF PRIMARY OPTION MENU

page in the ISFOUT dd.

DA Active users ULOG User session log
I Input queue
O Output queue
H Held output queue
ST Status of jobs

END Exit SDSF
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 1:22 pm    Post subject:
Reply with quote

Are there any messages next to the command line?

Another question: What is "OWNER USERID" that appears in your code?

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 1:27 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi O,


No messages there .. and i just masked the actual userid by giving USERID. OWNER Z00****
PRE Z00***** .

Pls let me know if you need more info.


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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 1:37 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi,

i just removed the filter command from the ISFIN *

And executed code ( rc 0) and got the INVALID COMMAND
in the IFSOUT dd's 3rd page

SDSF STATUS DISPLAY ALL CLASSES INVALID COMMAND
COMMAND INPUT ===> ++? SCROLL ===> PAGE
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 1:42 pm    Post subject:
Reply with quote

If you use FILTER, I don't see the reason for OWNER & PREFIX commands...

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 2:43 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi,

Now i removed the owner and prefix from my ifsin *.

i think the command ++? is not working here .. it says INVALID COMMAND
..

Any inputs on this !
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 2:46 pm    Post subject:
Reply with quote

Does the FILTER command worked as expected? Do you see the job in ISFOUT after FILTER?

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 2:57 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi O,


yes, filter is working and can see the exact job in the ifsout dd.

here i am getting the ++? in the command line withe the message invalid command.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 4:06 pm    Post subject:
Reply with quote

OK, next step. Was the FIND command successful?

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Thu Mar 12, 2009 5:20 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi O,

It is not working.. i can see the error message NO CHARS 'Z001359' FOUND
.

i think because of that only '++?' is not working...

How to solve this..
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 12, 2009 7:03 pm    Post subject:
Reply with quote

What is Z001359???

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

New User


Joined: 12 Oct 2007
Posts: 21
Location: Chennai

PostPosted: Fri Mar 13, 2009 9:51 am    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Hi O,

Sorry for the delayed reply..


That is my id ...(not the real user id. just using the dummy one to post in the forum)..


i think FIND will work only for the job name. can it be used for jobid...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Mar 13, 2009 11:49 am    Post subject:
Reply with quote

No, FIND is for searching any string in most SDSF panels. Remember that "++?" must be preceded by successful FIND (which places the cursor against a record in the panel).

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

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Mar 17, 2009 2:30 pm    Post subject: Reply to: Running SDSF in Batch
Reply with quote

Rethin,

Code:
FILTER JOBID EQ JOB39199
FIND JOB39199



After the filter command you are finding the JOBID again which is invalid as you expand the job.
If you give a valid FIND command after the FILTER command the "++?" will expand the job.
Given another FIND command to search for the ddname and then "++s" will expand the data within.
Do a PRINT at this point of time.....
Thats all...

Code:
ST
PREFIX JOBNAME
FILTER JOBID EQ JOBID
FIND JOBNAME
++?
FIND DDNAME
++S
PRINT ODSN 'OUTPUT.DATASET'
PRINT 1 99999
PRINT CLOSE
END


Syam
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 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
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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