I've been given a readout that uses PUT statement but I can't find an example of how to use this that works for me.
What I have at the minute is:
DATA TEST; SET TC_LEVEL_JUNE01; FILE "C:\users\JUNE012.csv" LRECL = 7353; PUT @5 TENANCY_REFERENCE_NUMBER $20. @25 TENANT_ID $20. @45 RECORD_TYPE 2. @47 EVENT_TYPE 2. @49 NODE_TYPE $8. @57 CLOSURE_TYPE $1. @58 CLOSED_DATE 8. @66 EXTRACT_TYPE 2. @68 OPEN_DATE 8. @76 DATE_LAST_ACTIVE 8. @84 NUMBER_TENANTS 2. @86 NUMBER_OCCUPANTS 2. @88 RENT_TYPE $20. @108 TENANCY_START_DATE 8. @116 TENANCY_END_DATE 8. ....... more outputs until @7310 SPAREDATE_5 8.; RUN;
This creates a dataset called TEST with 870 fields but the dataset TC_LEVEL_JUNE01 has 516 fields (which is correct). I'm not sure why it's creating more fields in the TEST dataset and the read out is not correct either.