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

Find DD Name from JOB log in REXX


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

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Thu Jun 25, 2009 4:52 pm
Reply with quote

Dear friends ,

I want to XDC a DD from JOB log for which i have created a REXX which is given below .

"DROPBUF"
QUEUE "OWNER" IBMAS1BD
QUEUE "PREFIX *"
QUEUE "ST"
QUEUE "SELECT "IBMAS1BD JOB30694
QUEUE "AFD REFRESH"
QUEUE "FIND "JOB30694
QUEUE "++?"
QUEUE "FIND NSFPR01"
QUEUE "++S"
QUEUE 'PRINT ODSN "BLYAS1.SDSF.PRT1(TES2)" * shr'
QUEUE 'PRINT 1 9999'
QUEUE 'PRINT CLOSE'
QUEUE 'END'
QUEUE 'EXIT'
"ALLOC F(ISFIN) TRACKS SPACE(1) REU" /* USED BY SDSF */
"ALLOC FI(ISFOUT) DSN('"BLYAS1.SDSF.PRT"') SHR REUSE"
"EXECIO" QUEUED()" DISKW ISFIN (FINIS" /* INPUT TO SDSF BATCH */
"CALL *(ISFAFD) ' ++132,255'"


I want to check if this job have NSFPR01 DD is it possible to put If condition .


Regards
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jun 25, 2009 7:49 pm
Reply with quote

You can try and read ISFOUT, and look if there is an error message for your "FIND NSFPR01" command.

O.
Back to top
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Fri Jun 26, 2009 11:15 am
Reply with quote

So if there are 10 jobs we have to read ISFOUT 10 times.
Back to top
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Fri Jun 26, 2009 11:49 am
Reply with quote

Hi Ofer ,

I have looked into ISFOUT . but there is no error msg coming if condition not found .

Rgerads
Back to top
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Fri Jun 26, 2009 1:53 pm
Reply with quote

"ALLOC F(ISFIN) TRACKS SPACE(1) REU" /* Used by SDSF
ALLOC F(ISFOUT) NEW DELETE REU " ,
"ALLOC F(TEMPPRT) DA('SDSF.PRT2(NBFPR01)') SHR REUSE"
QUEUE "OWNER" BLYAS1BD
QUEUE "PREFIX *"
QUEUE "ST"
QUEUE "SELECT "BLYAS1BD JOB30694
QUEUE "AFD REFRESH"
QUEUE "FIND "JOB30694
QUEUE "++?"
QUEUE "FIND NBFPR01"
QUEUE "++S"
QUEUE "PRINT FILE TEMPPRT " /* Print to temp datas
QUEUE "PRINT 1 999999"
QUEUE "PRINT CLOSE"
QUEUE 'END'
QUEUE 'EXIT'


I have tried to lookn into ISFOUT but there is no error found in case of string is not matched infact JESMSGLG get in to the TEMPPRT in case of string not found.


Is there any other way we can check if particular DD name is present or not .

Regards
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top