Date: Wed, 10 Mar 1999 11:29:01 -0500
Reply-To: "Janas, James W" <james.janas@EDS.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Janas, James W" <james.janas@EDS.COM>
Subject: SAS OUTPUT Question
Content-Type: text/plain; charset="iso-8859-1"
Hope someone can help me out. I am running on OS390 system. I have spun off
a JES2 sysout to disk. Each page of the sysout has 5 lines of data.
Everytime I read a record from the sysout SAS is outputing a record. Is
there a way I can read 5 input records and create one SAS record?
Here is the test code I have been running:
DATA SYSDATA1 (KEEP=DATE HOUR);
RETAIN DATE HOUR;
DO I=1 TO 5;
INFILE INPUT1;
INPUT
FLD1 $ 03-06 FLD2 $ 18-24@;
IF FLD1 = 'TIME' THEN HOUR = SUBSTR(FLD2,1,2);
ELSE
IF FLD1 = 'DATE' THEN DATE = FLD2;
ELSE DELETE;
END;
OUTPUT SYSDATA1;
Thanks in advance,
Jim
|