I'm working with SAS version 8.2 on the mainframe and I'm trying to do a very simple extract of a subset of a data file. The input file is variable blocked, VB and so is the output file. I can't seem to get any output. The messages in the SASLOG say that all the records were read but no output comes out. Since I'm not familiar with SAS at all and am just learning it, I'm not sure if I've coded the proper output functions. Can someone review my code and suggest some improvements?
Thanks,
MHW
OPTIONS PAGESIZE=60;
DATA MASTER;
INFILE DATAIN RECFM=VB LRECL=354 END=EOF;
INPUT
@9 RPT 2;
IF RPT = 10
THEN INPUT
@5 STUFB4 6.
@11 OFFICE 3.
@14 STUFAFTR $CHAR341.
;
DATA MASTER2;
FILE DATAOUT RECFM=VB LRECL=354;
IF OFFICE IN (131 140)
SET MASTER2;
PUT @5 STUFB4 6.
@11 OFFICE 3.
@14 STUFAFTR $CHAR341;
;
Thanks,
MHW
OPTIONS PAGESIZE=60;
DATA MASTER;
INFILE DATAIN RECFM=VB LRECL=354 END=EOF;
INPUT
@9 RPT 2;
IF RPT = 10
THEN INPUT
@5 STUFB4 6.
@11 OFFICE 3.
@14 STUFAFTR $CHAR341.
;
DATA MASTER2;
FILE DATAOUT RECFM=VB LRECL=354;
IF OFFICE IN (131 140)
SET MASTER2;
PUT @5 STUFB4 6.
@11 OFFICE 3.
@14 STUFAFTR $CHAR341;
;