MAIN CSECT
STM 14,12,12(13)
BASR 12,0
USING *,12
ST 13,SAVE+4
LA 13,SAVE
START EQU *
OPEN (FILEIN,(INPUT))
OPEN (FILEOUT,(OUTPUT))
USING RECIN,4
GET FILEIN
LR 4,1
PUT FILEOUT
EOF CLOSE FILEIN
CLOSE FILEOUT
EXIT EQU *
L 13,SAVE+4
LM 14,12,12(13)
LA 15,0
BR 14
FILEIN DCB DDNAME=INDD,DSORG=PS,MACRF=(GL),EODAD=EOF
FILEOUT DCB DDNAME=OUTDD,DSORG=PS,MACRF=(PL)
SAVE DS 18F
RECIN DSECT
CUSTNAME DS CL40
CUSTADDR DS CL40
RECOUT DSECT
NAME DS CL40
ADDRESS DS CL40
END MAIN
STM 14,12,12(13)
BASR 12,0
USING *,12
ST 13,SAVE+4
LA 13,SAVE
START EQU *
OPEN (FILEIN,(INPUT))
OPEN (FILEOUT,(OUTPUT))
USING RECIN,4
GET FILEIN
LR 4,1
PUT FILEOUT
EOF CLOSE FILEIN
CLOSE FILEOUT
EXIT EQU *
L 13,SAVE+4
LM 14,12,12(13)
LA 15,0
BR 14
FILEIN DCB DDNAME=INDD,DSORG=PS,MACRF=(GL),EODAD=EOF
FILEOUT DCB DDNAME=OUTDD,DSORG=PS,MACRF=(PL)
SAVE DS 18F
RECIN DSECT
CUSTNAME DS CL40
CUSTADDR DS CL40
RECOUT DSECT
NAME DS CL40
ADDRESS DS CL40
END MAIN
I copied some code,just shows as above.
can somebody tell me why output file does NOT have the same record as input file?
thx.
Sincerely,
Bob