INTRDR CSECT
USING *,12
SAVE (14,12),,INTRDR
LR 12,15
LA 15,SAVEAREA
ST 13,4(,15)
ST 15,8(,13)
LR 13,15
OPEN (JCL,INPUT)
OPEN (INTRDRR,OUTPUT)
LOOP GET JCL
ST 1,(RPLAREA-IFGRPL)+INTRPL
PUT RPL=INTRPL
LTR 15,15
BZ LOOP
DC H'0'
EOF NOPR 0
CLOSE INTRDRR
CLOSE JCL
L 13,4(,13)
RETURN (14,12),RC=0
SAVEAREA DC 9D'0'
JCL DCB DSORG=PS,MACRF=GL,DDNAME=JCL,EODAD=EOF
INTRDRR ACB DDNAME=INTRDR,MACRF=(ADR,SEQ,OUT)
INTRPL RPL AREALEN=80,RECLEN=80,AREA=*-*,OPTCD=(ADR,SYN,SEQ,NUP), ->
ACB=INTRDRR
DC 0D'0'
IFGRPL ,
END INTRDR