Maybe you could help me with my next problem. I need to manipulate the data generated from the output that you helped with. RMS{i}=21.1 is a code associated with a negative number (i.e. - 2.75). I need to subtract that number from the codes below.
DATA MILL1 ;
SET MILLA8;
BY CNTY SR SEG BEG_OFF;
ARRAY DPT{29} LAY_DT1-LAY_DT29;
ARRAY PAV{29} PAV_ST1-PAV_ST29;
ARRAY RMS{29} RMS_CD1-RMS_CD29;
DEPTH=0;
CODE=0;
flag = 0; * Reset flag;
OFF_LEN=END_OFF-BEG_OFF;
IF LAY_CD1='BRDK' OR LAY_CD2='BRDK' THEN DELETE;
DO I=1 TO 29 BY 1 UNTIL (CODE=21.2);
if RMS{i}=21.1 then flag = 1;
IF PAV{i} NE 'W' and flag = 1 THEN DO; *Starts processing after flag is set;
DEPTH=DPT{i}; CODE=RMS{i};
IF CODE=. THEN DELETE;
IF CODE=21.2 THEN DEPTH=0;
output;
END;
END;
RUN;
Message was edited by: cpjeep
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!