View previous topic :: View next topic
|
Author |
Message |
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Are there any messages next to the command line?
Another question: What is "OWNER USERID" that appears in your code?
O. |
|
Back to top |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If you use FILTER, I don't see the reason for OWNER & PREFIX commands...
O. |
|
Back to top |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Does the FILTER command worked as expected? Do you see the job in ISFOUT after FILTER?
O. |
|
Back to top |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
OK, next step. Was the FIND command successful?
O. |
|
Back to top |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What is Z001359???
O. |
|
Back to top |
|
|
Sachinrethin
New User
Joined: 12 Oct 2007 Posts: 21 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
skkp2006
New User
Joined: 14 Jul 2006 Posts: 93 Location: Chennai,India
|
|
|
|
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 |
|
|
|