exec sql lock table customers in row exclusive mode nowait end-exec. |
working-storage section. 77 ins-values pic x(10) occurs 4. procedure division. move "aaa" to ins-values(1). move "bbb" to ins-values(2). move "ccc" to ins-values(3). move "ddd" to ins-values(4). exec sql for 3 insert into tbl1 (column1) values (:ins-values) end-exec. |
exec sql insert into emptbl (empno, ename, deptno ) values ('12', 'John Doe', 'dep1') returning empno, ename, deptno into :new_emp_number, :new_emp_name, :new_dept end-exec. |
working-storage section. 77 col-val pic x(10) occurs 3. procedure division. exec sql select column1 into :col-val from tbl1 end-exec. |
identification division. Class-id. myClass. identification division. factory. working-storage section. 01 myProp pic 9(10) comp property. procedure division. identification division. method-id. myMethod procedure division. main. move 2 to myProp. |
configuration section. repository. class myClass as "myClass" property myProp. procedure division. main. display myProp of myClass. |
method-id. getInstance as "getInstance". working-storage section. 77 cls-instance object reference active-class. procedure division returning cls-instance. main. invoke self "new" giving cls-instance. |
$SET INDD"<filename>" $SET OUTDD"<filename [recsize] [filetype]>" |
01 WHO-CALLED-ME. 05 THE-CALLING-PROGRAM PIC X(30) VALUE SPACES. 05 THE-CALLING-LINE PIC S9(6) BINARY. 05 THE-LINE-NUM PIC S9(02) BINARY. PROCEDURE DIVISION. CALL 'C$WRU' USING THE-CALLING-PROGRAM THE-CALLING-LINE THE-LINE-NUM. |