How can i compile and run a PL/1 Program with SQL inside?
My PL/1 Program:
MYSQL: PROC OPtions(main);
dcl depno char(5);
dcl depname char(20);
exec sql include sqlca;
/*exec sql include dept272;*/
exec sql
select depno,depname
into :DEPNO,:DEPNAME
from DSN8910.DEPT
where deptno='E01'M
put skip list('DEPNO IS :',DEPNO);
put skip list('DEPNAME IS:',DEPNAME);
END MYSQL;
dcl depno char(5);
dcl depname char(20);
exec sql include sqlca;
/*exec sql include dept272;*/
exec sql
select depno,depname
into :DEPNO,:DEPNAME
from DSN8910.DEPT
where deptno='E01'M
put skip list('DEPNO IS :',DEPNO);
put skip list('DEPNAME IS:',DEPNAME);
END MYSQL;
My JCL for Compile and Run:
//IBMUSERX JOB MSGCLASS=A,NOTIFY=IBMUSER,REGION=0M
//STEP1 EXEC IBMZCBG,REGION.PLI=32M
//STEPLIB DD DSN=IEL370.SIBMZCMP,DISP=SHR
//PLI.SYSIN DD DSN=IBMUSER.TEST.PL1(MYSQL),DISP=SHR
//
//STEP1 EXEC IBMZCBG,REGION.PLI=32M
//STEPLIB DD DSN=IEL370.SIBMZCMP,DISP=SHR
//PLI.SYSIN DD DSN=IBMUSER.TEST.PL1(MYSQL),DISP=SHR
//
I get the Error:
Compiler Messages
Message Line.File Message Description
IBM1866I S 4.0 The EXEC statement is not supported.
IBM1866I S 6.0 The EXEC statement is not supported.
IBM1085I W 12.0 DEPNAME may be uninitialized when used.
IBM1866I S 4.0 The EXEC statement is not supported.
IBM1866I S 6.0 The EXEC statement is not supported.
IBM1085I W 12.0 DEPNAME may be uninitialized when used.