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

Running SDSF in Batch


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 1:06 pm
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 1:22 pm
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
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 1:42 pm
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 2:46 pm
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 4:06 pm
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
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: 2358
Location: Israel

PostPosted: Thu Mar 12, 2009 7:03 pm
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
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: 2358
Location: Israel

PostPosted: Fri Mar 13, 2009 11:49 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
Search our Forums:

Back to Top