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
 

 

How to display value of an exit parameter on the console?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
lind sh

New User


Joined: 04 Feb 2015
Posts: 25
Location: Tajikestan

PostPosted: Sun Oct 09, 2016 12:28 pm    Post subject: How to display value of an exit parameter on the console?
Reply with quote

Suppose I write the following code:
Code:
*                                                                     
         DFHUEXIT TYPE=EP,ID=(XXMATT)                                 
ME01XMAT CSECT                                                         
ME01XMAT AMODE 31                                                     
ME01XMAT RMODE ANY                                                 
*#                                                                     
         SAVE  (14,12)                                   
         LR    12,15                                                   
         USING ME01XMAT,12                 
         LR    2,1                                                     
         USING DFHUEPAR,2             

**********************************************************             
         LA    5,UEPTRANID                                             
         WTO   TEXT=(5)                                               
         WTO   'Exit point of XXMATT !!!'                     

**********************************************************
RETURN   DS    0H                         
         L     13,UEPEPSA             
         RETURN (14,12),RC=UERCNORM     
                               
         SPACE                                                 
SAVE     DS 18F                                               
         END   ME01XMAT                                       

I expect to see the transaction name on the console when any transaction attached. The last WTO display my message correctly but I can't see the value of point that UEPTRANID has it's address.
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Sun Oct 09, 2016 5:44 pm    Post subject: Reply to: How to display value of an exit parameter on the console?
Reply with quote

When using the format WTO TEXT=(5) then the area must include the length in the 1st half word.
Here is an example:
Code:
         MVC   MYTRANS,UEPTRANID
         LA    5,WTOTRANS
         WTO   TEXT=(5)                                               

         ...

WTOTRANS EQU   *
         DC    AL2(L'MYTRANS)
MYTRANS  DS    CL4


(Code not validated)
Back to top
View user's profile Send private message
lind sh

New User


Joined: 04 Feb 2015
Posts: 25
Location: Tajikestan

PostPosted: Sun Oct 16, 2016 11:56 am    Post subject:
Reply with quote

UEPTRANID contains the address of a location which it's content is the 4 byte transaction ID.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts How to use my exit program. lind sh CICS 1 Tue Sep 13, 2016 1:54 pm


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