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

How to detect the Job COND used


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 15, 2016 1:02 am
Reply with quote

Quote:
I want to figure out how to achieve a result on my own but I don't have enough skills and knowledge.


Mr whatever Your name is
wandering thru zOS control block is something that should not be done and used in a production system based on forum replies
Back to top
View user's profile Send private message
tdfs

New User


Joined: 31 Mar 2015
Posts: 18
Location: Italy

PostPosted: Mon Feb 15, 2016 1:04 am
Reply with quote

Thanks for your advise, I'll think about it.
Regards.

A
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Mon Feb 15, 2016 8:07 am
Reply with quote

As I said bafore, Mr. Jensen's code fragment will not always work. It will not work if your installation specifies the SWA above the line. This code fragment will always work. Your code specifies AMODE 31, though if it works it will work with AMODE 24. The SWAREQ macro requires AMODE 31.
Code:
         PUSH  PRINT
         PRINT NOGEN
         IEFZB505 LOCEPAX=YES
         ORG   ,
ZB505SZ  EQU   *-ZB505
         POP   PRINT
         ...
         L     2,CVTPTR
         L     3,CVTTCBP-CVTMAP(,2)
         L     4,4(,3)
         L     5,TCBJSCB-TCB(,4)
         XC    ZB505X,ZB505X
         LA    0,ZB505X
         ST    0,SWEPAPTR
         USING ZB505,ZB505X
         MVC   SWVA,JSCJCTP-IEZJSCB(5)
         SWAREQ UNAUTH=YES,FCODE=RL,EPA=SWEPAPTR,MF=(E,SWAPARM)
         LTR   15,15
         BNZ   EXIT
         L     1,SWBLKPTR
         ...
         DS    0D
ZB505X   DC    XL(ZB505SZ)'0'
SWEPAPTR DS    F
SWAPARM  SWAREQ MF=L
         POP   PRINT
         ...
         PUSH  PRINT
         PRINT NOGEN
         CVT   DSECT=YES
         IKJTCB ,
         IEZJSCB ,
         IEFAJCTB ,
         IEFJESCT ,
         POP   PRINT
The Load instruction after the SWAREQ macro call will load the correct address of the JCT.
Back to top
View user's profile Send private message
tdfs

New User


Joined: 31 Mar 2015
Posts: 18
Location: Italy

PostPosted: Mon Feb 15, 2016 1:48 pm
Reply with quote

Thank you very much, I'll study your code and adapt it to my needs.

A
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 -> JCL & VSAM Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
No new posts INCLUDE COND with WHEN=GROUP SYNCSORT 12
Search our Forums:

Back to Top