Hey all, I'm a little stuck with how best to approach the input of a text file. Here's what my data looks like - HOUSEHOLD RECORD DATA SIZE BEGIN RANGE D HRECORD 1 1 (1:1) U All households V 1 .Household record D H_SEQ 5 2 (00001:99999) Household sequence number V All households V 00001- .Household sequence number V 99999 . D HHPOS 2 7 (00:00) Trailer portion of unique household ID. 00 for HH record. Same function in family record is field FFPOS (01-39). Same function in person record is PPPOS (41-79). Following "D " is always the variable name ("HRECORD"), which I want to input. Following the variable is the length ("size" column) which I also wish to input. "U" designates the universe; I want to keep that string. "V" designates the values for that variable, which I also want bring in. A variation of this structure, is when the "D" row is followed by a variable description, (between D and U or V). I'm not exactly sure how to import/input this text file considering it's data structure. A PROC IMPORT will bring everything in, but into just one column and some descriptions are truncated/cut off. I've thought about using character functions to start parsing the data. The goal is to have a data set with the following columns: Var_Name, Length, Description, Universe, and Values. Any insight? (SAS 9.4 TS Level 1M4, Enterprise Guide 7.1)
... View more