Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

HOW TO PERFORM MILTITHREADING IN CICS ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: HOW TO PERFORM MILTITHREADING IN CICS ?
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: 7932
Location: Bellevue, IA

PostPosted: Sat Jan 31, 2009 1:10 am    Post subject:
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

Site Director


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

PostPosted: Sat Jan 31, 2009 2:09 am    Post subject:
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    Post subject:
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    Post subject: multithreading
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: 7932
Location: Bellevue, IA

PostPosted: Sat Jan 31, 2009 6:37 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Jan 31, 2009 11:27 pm    Post subject:
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    Post subject:
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    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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us