I am Windows XP with RDz 22.214.171.124 and TXSeries 126.96.36.199 and my REGION1 is up and running all the time. At any time of day I would like to start a specific CICS transaction on a local terminal from a Windows command line or batch file.
Typically I run a gen1.cmd where udo1 (with its transaction ID parm) and udo2 are REXX's that do stuff after which I immediately want to see the DD1A transaction on screen without manual intervention (see the attachment (without the email bit at the end):
So gen1.cmd contains:
call udo1 DD1A
...something like 'cics start REGION1 DD1A' and
a) expecting to see the Main Menu
b) but can't find anything in the documentation that explicity says I can do this
c) and gen1.cmd itself ends while the screen remains alive and active
In my ideal world I will then run gen1 again with a different transaction ID so would then hope to see another CICSTERM window open with my different Main Menu! .. ad infinitum.
Would the Windows answer also be true on a z/OS platform?
Pinned topic Start a transaction via a Windows XP CMD file
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-06-17T00:19:06Z at 2010-06-17T00:19:06Z by graham40
Re: Start a transaction via a Windows XP CMD file2010-06-07T01:00:04ZThis is the accepted answer. This is the accepted answer.Hello,
a) answering myself
b) guess nobody else is trying to start a CICS transaction directly from a Windows XP command window
c) will assume it can't be done
IainBoyle 1000007R8Y37 Posts
Re: Start a transaction via a Windows XP CMD file2010-06-08T08:06:00ZThis is the accepted answer. This is the accepted answer.
- graham40 100000JACM
It is possible to start a transaction in CICS from the command line. The good news is that the process is the same regardless of which CICS system you target, TXSeries or z/OS.
To make it work you will need to use the CICS Transaction Gateway (CTG) and make an ECI call from your Windows environment to a transaction in CICS. The target transaction must conform to the DPL subset of commands, which basically means no terminal interaction. If you want to start a transaction on a terminal, you will have to use something like E.C. START from the target transaction.
I haven't looked at the latest CTG version, but it used to ship with a number of sample programs written in C, Cobol and Java that effectively did what you are looking for. Hopefully they are still available.
Hope that helps, Iain
SystemAdmin 110000D4XK308 Posts
Re: Start a transaction via a Windows XP CMD file2010-06-08T09:50:36ZThis is the accepted answer. This is the accepted answer.Apart from the standard way that Iain suggested, you can try this crude way(u need a 3270 emulator).
1) start cicsteld on some port
cicsteld -r <regionname> -p port -t <your start transId>
2) if u have hummingbird 3270 emulator
C:/Program Files/Hummingbird/Connectivity/7.10/HostExplorer/Shl3270.exe -h <hostname> <cicsteldport>
You can put both these in your script and try out if its of some help.
Only catch here is .. to close the terminal.. u need to manually do a CESF on the terminal. Thats the graceful way. Else u can kill the Shl3270 process.
Re: Start a transaction via a Windows XP CMD file2010-06-17T00:19:06ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Thanks for those ideas, now have pathways I know can be successfully used - I had no knowledge even where to begin.