Home > Ask the Data Center Experts > Questions & Answers > Using Web-CICS direct connect programming language is COBOL
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

Using Web-CICS direct connect programming language is COBOL

Robert Crawford EXPERT RESPONSE FROM: Robert Crawford

Pose a Question
Other Data Center Categories
Meet all Data Center Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 19 August 2003
I'm writing my first application utilizing Web-CICS direct connect programming language in COBOL. My program now sends a first screen when entering and http address in browser: http://

My question is, how do I pass data from one task to another? I can't use EXEC CICS RETURN TRANSID COMMAREA(DFHCOMMAREA) the regular way to pass data between program executions since there is no transaction ID involved. Also, I can't check EIBCALEN to check commarea length (if any info was passed from previous task). Hence, I'm unable to validate any action done on my screen (button pressed, text entered).

I browsed through tons of IBM posted information and still did not find an answer to my problem. If you would be able to help me move forward from the freezing point, I'd really appreciate it. Thank you.


>
This is one of the places where the Web way of doing things conflicts with the CICS programming paradigm.

In essence, a browser-initiated Transaction is single-shot (one in and one out) whereas CICS Pseudo Conversational Transactions keep going over lots of user interactions with information being passed between the Transaction Instances via a commarea or TSQs etc.

Regrettably, the way to do this is to either use cookies or URL re-writing or more usefully, hidden fields in the Web pages. These hidden fields can contain data to be passed around between the Web-initiated transactions so giving the equivalent of a commarea.

The way I do this nowadays is to create a BTS process to anchor process-level containers. The process lasts as long as required (and certainly over a CICS transaction boundary) and so the Containers can hold as much data as you want over the lifetime of the Web interaction (don't forget to delete the process or else it will last forever but you can use a bit more complex BTS processing to schedule deletion after hours). The process name has to be unique and you pass this name in hidden HTML fields so that the application reading the flow from the browser can use this setting to re-acquire the BTS process and so get hold of the relevant saved state.

On the CICS Web site one of my papers goes into BigCommarea processing that also has some background on BTS concepts that are very relevant to this technique.


BROWSE BY TAG
CICS Newsletter,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
CICS Newsletter
Does IBM's mainframe business constitute a monopoly?
IBM z/OS 1.11 preview: New features and functions
New statistics for CICS Transaction Server 3.2
Manage CICS workloads with transaction classes
Run CICS in batch to beat a shrinking batch window
Ensuring CICS security with the Web Services Security standard
Use DFHLS2WS to expose CICS applications as a Web service
Using IBM IPCS to battle software bugs
CICS and Web services: Ready to go
Using External Call Interface (EXCI) to access CICS

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Building Green Data Centers
HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts