Hi all,
progA
01 ws-comm.
03 LENGTH-comm PIC S9(4) COMP VALUE +100.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(56).
in the same ProgA I have ued the following code:
MOVE SPACES TO CUSTOMER-comm.
MOVE SPACES TO EXPORT-comm.
MOVE APPL-NO TO APPL-comm.
MOVE imp-KEY TO ACCT-comm.
EXEC CICS LINK
PROGRAM('progB')
COMMAREA(ws-comm)
LENGTH(LENGTH-comm)
END-EXEC.
In progB
Linkage section.
01 DFHCOMMAREA.
03 LENGTH-comm PIC S9(4) COMP VALUE +100.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(56).
When I tried with this above code it throws an error called AZI6 and ASRA.
When I checked in CEDF mode in CICS it shows that the value passed from ProgA to LENGTH-comm is zero and throws an DATA exception error.
Please help me to clear this error.
Thanks in advance.
Data exception error
Moderators: DikDude, Natarajan, Moderator Group
Data exception error
"Helping hand is better than praying lips"
CICS LINK ASRA ABEND
Check the value of LENGTH-comm before/while executing the LINK CICS command in program A. There might be initialization issue in program A.
OR
use LENGTH OF ws-comm with LENGTH option of LINK command.
Try this and let us know the result.
OR
use LENGTH OF ws-comm with LENGTH option of LINK command.
Try this and let us know the result.
Natarajan
Chennai
Chennai
In progA i have declared the following
01 LINK-CONSTANT.
03 LENGTH-COMM PIC S9(4) COMP VALUE +100.
01 WS-comm.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(40).
in the same ProgA I have ued the following code:
INITIALIZE WS-comm.
INITIALIZE LENGTH-comm.
MOVE SPACES TO CUSTOMER-comm.
MOVE SPACES TO EXPORT-comm.
MOVE APPL-NO TO APPL-comm.
MOVE imp-KEY TO ACCT-comm.
EXEC CICS LINK
PROGRAM('progB')
COMMAREA(ws-comm)
LENGTH(LENGTH-comm)
END-EXEC.
IN PROGB I HAVE DECLARED THE FOLLOWNG THINGS.
01 LINK-CONSTANT.
03 LENGTH-COMM PIC S9(4) COMP VALUE +100.
Linkage section.
01 DFHCOMMAREA.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(40).
But now I am not getting data exception error, but when i checked the control flow in CEDF nothing get passed in the comm area and obviously the length is also zero in it
It looked like
EXEC CICS LINK
PROGRAM('progB')
COMMAREA('')
LENGTH(0)
END-EXEC
Please help me to overcome this error.
Thanks for your suggestion.
01 LINK-CONSTANT.
03 LENGTH-COMM PIC S9(4) COMP VALUE +100.
01 WS-comm.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(40).
in the same ProgA I have ued the following code:
INITIALIZE WS-comm.
INITIALIZE LENGTH-comm.
MOVE SPACES TO CUSTOMER-comm.
MOVE SPACES TO EXPORT-comm.
MOVE APPL-NO TO APPL-comm.
MOVE imp-KEY TO ACCT-comm.
EXEC CICS LINK
PROGRAM('progB')
COMMAREA(ws-comm)
LENGTH(LENGTH-comm)
END-EXEC.
IN PROGB I HAVE DECLARED THE FOLLOWNG THINGS.
01 LINK-CONSTANT.
03 LENGTH-COMM PIC S9(4) COMP VALUE +100.
Linkage section.
01 DFHCOMMAREA.
03 IMPORT-comm.
05 APPL-comm PIC X(04).
05 ACCT-comm PIC X(30).
05 CUSTOMER-comm PIC X(24).
03 EXPORT-comm.
05 ERROR-comm PIC X(02).
03 FILLER PIC X(40).
But now I am not getting data exception error, but when i checked the control flow in CEDF nothing get passed in the comm area and obviously the length is also zero in it
It looked like
EXEC CICS LINK
PROGRAM('progB')
COMMAREA('')
LENGTH(0)
END-EXEC
Please help me to overcome this error.
Thanks for your suggestion.
"Helping hand is better than praying lips"
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Why are you
and Natarajan gave you the 'recommended' method of passing a length field.
but your problem is that you don't understand the INITIALIZE command.............l
????????????????????????????????????????????????INITIALIZE LENGTH-comm.
and Natarajan gave you the 'recommended' method of passing a length field.
but your problem is that you don't understand the INITIALIZE command.............l
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page