On Friday 19 January 2007 11:31, BillD wrote: > We have several modules that are maintained in both batch and online > versions. This may have been necessary in the past, but we are now > running z/OS and there ought to be a way to handle dynamic calls to > modules that will work in either environment using the COBOL LE > (Language Environment.) My module works when called by a batch driver. > My initial try in CICS got me a Segment-Translation Exception on the > statement that moves an item from the linkage section to the working > storage section. Anyone else already cross this bridge?
This type of problem is common when converting CICS programs from VSE to MVS. The most typical example is MOVE DFHCOMMAREA TO ws-xxxx, where length(ws-xxxx) is longer than length(DFHCOMMAREA). This is something that's generally noticed (and corrected) when the converted applications are being tested. For DFHCOMMAREA, there's a simple way to ensure that the MOVE instruction only transfers data that's available, and prevent the abend : MOVE DFHCOMMAREA(1:EIBCALEN) TO ws-xxxx -- Gilbert Saint-Flour GSF Software http://gsf-soft.com/ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

