There's more I need to do, but what types of things do I need to do to edit this code to have it make it take input text files; then output text files with line numbers?
AVG SUBENTRY
OPEN (DATAIN,INPUT,SUMMARY,OUTPUT)
READLOOP DS 0H
GET DATAIN,INREC
ZAP TOTAL,=P’0’
PACK WORK8,NUM1
AP TOTAL,WORK8
PACK WORK8,NUM2
AP TOTAL,WORK8
PACK WORK8,NUM3
AP TOTAL,WORK8
MP TOTAL,=P’100’
DP TOTAL,=P’3’
MVC OUTID,INID
UNPK AVERAGE,TOTAL(5)
PUT SUMMARY,OUTREC
B READLOOP
WORK8 DS D
TOTAL DS PL6
INREC DS CL80
INID EQU INREC,5
NUM1 EQU INREC+6,5
NUM2 EQU INREC+12,5
NUM3 0E QU INREC+18,5
OUTREC DS CL13
OUTID EQU OUTREC,5
AVERAGE EQU OUTREC+6,7
END AVG
OPEN (DATAIN,INPUT,SUMMARY,OUTPUT)
READLOOP DS 0H
GET DATAIN,INREC
ZAP TOTAL,=P’0’
PACK WORK8,NUM1
AP TOTAL,WORK8
PACK WORK8,NUM2
AP TOTAL,WORK8
PACK WORK8,NUM3
AP TOTAL,WORK8
MP TOTAL,=P’100’
DP TOTAL,=P’3’
MVC OUTID,INID
UNPK AVERAGE,TOTAL(5)
PUT SUMMARY,OUTREC
B READLOOP
WORK8 DS D
TOTAL DS PL6
INREC DS CL80
INID EQU INREC,5
NUM1 EQU INREC+6,5
NUM2 EQU INREC+12,5
NUM3 0E QU INREC+18,5
OUTREC DS CL13
OUTID EQU OUTREC,5
AVERAGE EQU OUTREC+6,7
END AVG