View previous topic :: View next topic
|
Author |
Message |
sid_aec
New User
Joined: 01 Jul 2008 Posts: 60 Location: Kolkata
|
|
|
|
Hi,
When we use START transID(xyz1) from (data area) ,the next program associated with that transid will be invoked and we do RETRIEVE into(data area).
Can I use commarea-data while starting, within the FROM(commarea-data) and retrieve into (commarea-data) when commarea-data is the linkage section DFHCOMMAREA..
If my question seems misconception regarding START command then Please provide any link where all start command instances I can get.. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If EIBCALEN equals the length of the commarea-data that you expect and the commarea-data contains the data that you expect, I see no reason why the commarea-data can't be used as the FROM keyword. You can use EIBCALEN as the LENGTH keyword. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
When you issue the RETRIEVE, the EIBCALEN must equal the anticipated value, then you can retrieve into DFHCOMMAREA.
Otherwise, if EIBCALEN < 1, then you would need to issue a RETRIEVE with a SET.
Note that if the target transaction is attached to a terminal and has already issued a RETURN with TRANSID with a commarea, you will wipe-out this posted commarea. This is why EIBCALEN would be non-zero.
So, to eliminate wiping-out a previously posted commarea, the STARTED transid should not be attached to a terminal and with that, EIBCALEN would always be < 1. In other words, there wouldn't be a commarea.
Having said this, I think you'd be much better off issuing a RETRIEVE into a WORKING-STORAGE area. Then, go from there. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
If my question seems misconception regarding START command then Please provide any link where all start command instances I can get.. |
Frst: You need to learn how to use the WEB browser and Google
for CICS Applications Progammers Guide.
Second: Do not retrieve into DFHCOMMAREA for a transaction that
has been autostarted..
Go ahead and try it, the next thing you will hear, is your Systems
Programmer calling , telling you about storage violations or worse,
that you just crashed' the system ! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Frst: You need to learn how to use the WEB browser and Google
for CICS Applications Progammers Guide. |
or, you can follow the "IBM Manuals" link at the top of this page
There are 3 sets of CICS Language Reference and Application Programming Guide manuals linked. |
|
Back to top |
|
|
|