Hi iam new to PL1 language. while executing a simple PL1 prog iam getting U4038 abend.below is the code.
MYPROC: PROC OPTIONS(MAIN) REORDER;
DCL EMP_ID CHAR(04);
DCL EMP_NAME CHAR(06);
DCL DEPT CHAR(03);
DCL SALARY FIXED BIN(15);
GET LIST (EMP_ID,EMP_NAME,DEPT,SALARY);
PUT SKIP LIST ('EMPLOYE DETAILS');
PUT SKIP LIST ('EMP-ID :', EMP_ID);
PUT SKIP LIST ('EMP-NAME :', EMP_NAME);
PUT SKIP LIST ('DEPT :', DEPT);
PUT SKIP LIST ('SALARY :', SALARY);
END MYPROC;
Following is the JCl i used to run.
//ND6438UT JOB (PUPS,XXX),'PL1 PROG',NOTIFY=&SYSUID
//S020 EXEC PGM=PROG
//STEPLIB DD DSN=CMN.SUPS.STGO.#001918.LOD,DISP=SHR
//SYSIN DD *
DNAD
DHEENA
ATT
20000
/*
//SYSOUT DD SYSOUT=
//SYSPRINT DD SYSOUT=*
please anyone help me put with this...
U4038 abend in PL1
Moderator: Moderator Group
PLease - in future enclose your code in the code tags. These preserve spacing and makes the code appear as though it is a screenshot.
You have not posted the error message.
Your salary field has been defined as FIXED BIN but your inout is Zoned Decimal (PIC). Never the twain shall meet (without some go-between code).
You have not posted the error message.
Your salary field has been defined as FIXED BIN but your inout is Zoned Decimal (PIC). Never the twain shall meet (without some go-between code).
Regards
Nic
Nic
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