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

Test method without XPED for CICS pgm triggered from PLT pgm


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 1353
Location: Israel

PostPosted: Sun Aug 12, 2012 7:43 pm
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sun Aug 12, 2012 9:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top