Page 1 of 1

DFHCOMMAREA

PostPosted: Thu Feb 18, 2010 11:29 pm
by thequeis
Hi,


got an question,

PROGRAM A PASSES 100 BYTES TO PROGRAM B BUT PROGRAM B IS DEFINED WITH 50 BYTES ONLY. SO WHAT WILL HAPPEN?

THANKS

Re: DFHCOMMAREA

PostPosted: Thu Feb 18, 2010 11:34 pm
by Robert Sample
The CICS Application Programming Guide section 3.5.2.1 on passing data to other programs is quite explicit -- why didn't you check the manual first?

The receiving data area need not be of the same length as the original communication area; if access is required only to the first part of the data, the new data area can be shorter. However, it must not be longer than the length of the communication area being passed. If it is, your transaction may inadvertently attempt to read data outside the area that has been passed. It may also overwrite data outside the area, which could cause CICS to abend.