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

EXEC CICS START TRANSID()FROM()..can it b (commarea-data)??


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

New User


Joined: 01 Jul 2008
Posts: 60
Location: Kolkata

PostPosted: Sun Jul 19, 2009 1:41 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sun Jul 19, 2009 4:10 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sun Jul 19, 2009 7:29 pm
Reply with quote

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

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Mon Jul 20, 2009 3:02 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Mon Jul 20, 2009 3:15 am
Reply with quote

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 icon_wink.gif

There are 3 sets of CICS Language Reference and Application Programming Guide manuals linked.
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 Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top