View previous topic :: View next topic
|
Author |
Message |
adisay Warnings : 1 New User
Joined: 18 Dec 2008 Posts: 3 Location: hyderabad
|
|
|
|
I WANT TO THROW TWO TRANSACTIONS SIMULTANEOUSLY . HOW COULD THAT BE DONE ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Code: |
EXEC CICS START TRANSID('TX01') ... END-EXEC.
EXEC CICS START TRANSID('TX02') ... END-EXEC. |
gets you as close to "simultaneous" as you're likely to get on a CICS system. Perhaps if you tell something about what you're needing to do, rather than just suggesting how you want to do it? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Perhaps if you tell something about what you're needing to do, rather than just suggesting how you want to do it?
|
And when you do, TURN YOUR CAPS OFF. . . |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
I WANT TO THROW TWO TRANSACTIONS SIMULTANEOUSLY |
you don't "throw" transactions in CICS. The proper term would be "EXECUTE" |
|
Back to top |
|
|
adisay Warnings : 1 New User
Joined: 18 Dec 2008 Posts: 3 Location: hyderabad
|
|
|
|
Well I am looking forward to send a message to the terminal at the time say.. when the user enters only 5 digits on any specific field of map , which is suppose to contain exactly 6 digits , or say when user leaves any field blank ; at that time instantaneously message should be displayed but not after recieving "ENTER" key or any other function key from terminal(which usually get's done) on cics terminal.
I want this thing to be done on TAB key press but that I guess can't be done on mainframe keyboard when using pseudo conversation technique in CICS (as it recieves map on either "enter" or other function keys)
so I was looking forward to do this by creating a sort of routine that will gets invoked when any specific map is loaded and will keep on checking the criteria's specified there along with main transaction running.
If there is other way round to do it just let me know.
Thanks for replying |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
3270 terminals are not interactive. You send the map and wait for the user to press one of the keys that cause the terminal to interact with the system again (such as enter, PA1, PA2, PF1 -- PF24). The tab key is not one of these keys.
Quote: |
so I was looking forward to do this by creating a sort of routine that will gets invoked when any specific map is loaded and will keep on checking the criteria's specified there along with main transaction running. |
You cannot do this because the program is running on the mainframe. The data being entered is on the terminal. There is no transfer from the terminal to the mainframe until the appropriate key is hit. So your program wouldn't be able to see the data until the enter (or etc) key is hit, anyway.
Normally when faced with the challenge you face, people receive the map, edit the fields for whatever the criteria are, and then resend the map with error fields highlighted, flashing, or colored so they are easily spotted and fixed. Look in CICS Language Reference manual (link at the top of the page) for the DATAONLY option of SEND MAP. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
adisay,
In addition to the CICS language Reference manual that Robert suggests,
you need to be talking with your co-workers and asking management for
some training in CICS programming. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Most applications have "screen rules" as to how online transactions will be processed. It is important that all of the transactions in a system have a similar "touch and feel". In addition to basic cics training, you must also learn the screen standards for your system. You would not "invent" a way to interact with the users, but would follow the method other online programs use.
FWIW - on your pc, running a local app, every key is an interrupt key - talks directly with the cpu on every keystroke. On the mainframe the 3270 (which your pc emulates) terminal operates in block mode. Each key stroke is stored in a "block" locally and when an interrupt key (Enter, PFn, etc) is pressed the block is sent to the mainframe. |
|
Back to top |
|
|
adisay Warnings : 1 New User
Joined: 18 Dec 2008 Posts: 3 Location: hyderabad
|
|
|
|
Thank you all for your kind support . |
|
Back to top |
|
|
|