Hi, I’m new here but I’m after some assistance. I have several txt files containing packed fields that I’m trying to extract into SAS This is fairly straight forward except for the last field which is of varying length The first part I have is LRECL=340 INPUT @1 Customer_Type $ebcdic1. @2 Customer_Code s370fpd5. @7 Address_Indicator S370FIB4. @11 Format_Of_Address $ebcdic2. @13 Country_Code $ebcdic2. @15 Registartion_Date $ebcdic10. @25 Last_updated_by $ebcdic8. @33 Last_Updating_Cpmpany $ebcdic4. @37 Last_Updating_Branch $ebcdic4. @41 Date_Last_Updated $ebcdic10. @51 Time_Last_Updated $ebcdic8. So far so good, however the next part is the tricky bit The next field is a maximum of 280 characters, the first 2 characters are a packed field (S370FIB2.) that contain the length of the rest of the field which is in ebcdic I can’t get it to recognise both the varying length and the fact that both fields are encoded the best I have so far is @59 Adress_Length S370FIB2. +2 Address $varying278. Adress_Length ; But the final field is still encoded Is anyone able to help with this? Many thanks Andy
... View more