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

HOW TO PERFORM MILTITHREADING IN CICS ?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
adisay
Warnings : 1

New User


Joined: 18 Dec 2008
Posts: 3
Location: hyderabad

PostPosted: Sat Jan 31, 2009 12:59 am
Reply with quote

I WANT TO THROW TWO TRANSACTIONS SIMULTANEOUSLY . HOW COULD THAT BE DONE ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Jan 31, 2009 1:10 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jan 31, 2009 2:09 am
Reply with quote

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. . . icon_sad.gif
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Jan 31, 2009 9:29 am
Reply with quote

Quote:
I WANT TO THROW TWO TRANSACTIONS SIMULTANEOUSLY


you don't "throw" transactions in CICS. The proper term would be "EXECUTE"
Back to top
View user's profile Send private message
adisay
Warnings : 1

New User


Joined: 18 Dec 2008
Posts: 3
Location: hyderabad

PostPosted: Sat Jan 31, 2009 3:09 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Jan 31, 2009 6:37 pm
Reply with quote

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
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Jan 31, 2009 9:37 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jan 31, 2009 11:27 pm
Reply with quote

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
View user's profile Send private message
adisay
Warnings : 1

New User


Joined: 18 Dec 2008
Posts: 3
Location: hyderabad

PostPosted: Tue Feb 03, 2009 11:21 am
Reply with quote

Thank you all for your kind support .
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 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
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top