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
 

 

Interesting query about DFHCOMMAREA

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ravi1

New User


Joined: 27 Apr 2006
Posts: 11

PostPosted: Thu Jun 07, 2007 9:44 am    Post subject: Interesting query about DFHCOMMAREA
Reply with quote

I have defined the DFHCOMMAREA in the linkage section as X(49). The return statement in my program passes the COMM area data which is of size greater than 49. But the program does not abend and seems to work just fine with access to all the data which was sent last time using the following Move statement.
MOVE DFHCOMMAREA(1:EIBCALEN) TO WS-WORKAREA
How can this work? Is the size defined in the linkage section of no significance?


Thanks in Advance,
Ravi
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Jun 07, 2007 1:39 pm    Post subject:
Reply with quote

True, the size of the 01 in linkage is of no real significance. The data description in linkage allows the program to access the data directly. The main use it the address of the 01 dataname, a pointer to the data. Your MOVE take advantage of that address and relies on CICS for the length.
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 149
Location: Ottawa Canada

PostPosted: Thu Jun 07, 2007 11:54 pm    Post subject:
Reply with quote

There are LE runtime options that, when turned on, will cause LE to verify that your reference modifications are within the bounds of the variable referenced.

In other words, I think your code will abend if the system administrators were to turn these options on. Where I work, they turned them on about 4-5 years ago. I just made a trip through Abend-FX and was able to find a 1072 (IGZ0072S).

Safer and cleaner to make sure your DFHCOMMAREA is big enough to reference the entire area. Even if it works for you now...
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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


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