Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Test method without XPED for CICS pgm triggered from PLT pgm

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

New User


Joined: 15 Jun 2011
Posts: 2
Location: India

PostPosted: Sun Aug 12, 2012 6:45 pm    Post subject: Test method without XPED for CICS pgm triggered from PLT pgm
Reply with quote

hi,

I have a CICS pgm to test which can't be tested directly from the terminal as it have a hardcoded logic that if Assign command start code = 'TD' , return.
It's getting called from another pgm which is a program list table program.
Please provide me with an approach to test the transaction without using XPED.
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1250
Location: Israel

PostPosted: Sun Aug 12, 2012 7:43 pm    Post subject: Reply to: Test method without XPED for CICS pgm triggered fr
Reply with quote

You can always place a breakpoint right after the EXEC CICS ASSIGN, and change the received value (in WORKING-STORAGE) from TD to S or SD.
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Sun Aug 12, 2012 8:04 pm    Post subject: Reply to: Test method without XPED for CICS pgm triggered fr
Reply with quote

Use CEDX to monitor and debug non-terminal transactions.
Read more here:
Quote:
http://publib.boulder.ibm.com/infocenter/cicsts/v2r3/index.jsp?topic=/com.ibm.cics.ts23.doc/dfha7/dfha7or.htm

You can easily write a small "trigger"-program to simulate the PLT-situation.
Start this transaction on one terminal, after you have enabled CEDX on another terminal for your transaction to test.
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Sun Aug 12, 2012 9:04 pm    Post subject: Reply to: Test method without XPED for CICS pgm triggered fr
Reply with quote

Furthermore, the easiest way to trigger your transaction is to just execute a command using CECI.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sun Aug 12, 2012 9:59 pm    Post subject: Reply to: Test method without XPED for CICS pgm triggered fr
Reply with quote

Invoke the PLT program as a Transid, by checking the CICSSTATUS via the INQUIRE SYSTEM API at the program's beginning. If the status is STARTUP (DFHVALUE(STARTUP)), then issue a deferred START (non-zero interval --- 30 seconds should be OK) of the TRANSID assigned to this program. By doing it this way, the region will always launch and if the program had a problem, it will occur after CICS is up and active.

Upon the next invocation of the program (CICSSTATUS will be DFHVALUE(ACTIVE)), the program does what it's supposed to do.

As Peter has said, issue a CEDX tttt against the Transid and then issue a START with an interval of (for example) 20 seconds, then clear out of CECI and wait for the CEDX/Transid session to invoke.

Once the Transid is invoked, the program doesn't know how it had been invoked and the CICSSTATUS will be ACTIVE (F'181') and you can then walk it through.

You can build a failsafe of someone trying to START the transaction at a terminal by checking for an ACTIVE status and EIBTRMID NOT = LOW-VALUES or a STARTCODE of 'TD'.

HTH....
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 Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts How to get complete URL from CICS Con... mbattu CICS 1 Tue Nov 14, 2017 11:59 pm
No new posts Integrating CICS applications craig2020 CICS 1 Sun Oct 29, 2017 6:49 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us