|
From: Jim Moody [mailto:moody.77@OSU.EDU]
>Thanks in advance for any help you can give.
>I have an ascii data file that is hierarchical,
>with a varying number of lines for each case.
>That is, each case has a 'type1' record,
>but may have 0 to ?? type 2, type 3 etc. records.
clue: use retain for your type=1 records
I would recommend that you read the file and then transpose it.
You've got enough problems reading the multi-type records
without also trying to stuff them into arrays.
Beside which you don't or may not know the max number of items in your
array(s). Transpose will do that work for you.
SAS is powerful, use it.
Thinking Too Much(tm) often gets you into sin:
'missed the -- where was I aiming? -- mark!'
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
OpSys: Win_Pro Ver: 8.2
By using your intelligence
you can sometimes make your problems twice as complicated.
-- Ashleigh Brilliant
|