NAME1= first column of person label = 1 |
Top Up Down
A A |
NAME1= gives the column position where the person label information starts in your data file or in the new record formatted by FORMAT=.
It is easy to miscount the NAME1= column. Scroll to the top of the Winsteps screen and check column positions:
Input in process..
Input Data Record:
1 2
1234567890123456789012345678
Richard M 111111100000000000
^P ^I ^N
35 KID Records Input.
^P marks the Name1=1 column position with ^.
^I marks the Item1=11 column position with ^.
^N marks the NI=18 column position with ^.
Example 1: The person-id starts in column 10, data responses are 1 column wide, in columns 1-8:
NAME1=10 starting column of person-id
XWIDE=1 width of response
NI=8 number of responses
Example 2: The person-id in column 10, there are 4 data responses are 2 columns wide, in columns 1-8:
NAME1=10 starting column of person-id
XWIDE=2 width of response
NI=4 number of responses
Example 3: The person id starts in column 23 of the second record.
FORMAT=(80A,/,80A) concatenate two 80 character records
NAME1=103 starts in column 103 of combined record
Example 4: The person id starts in column 27 of a record with XWIDE=2 and FORMAT=.
This becomes complicated, see FORMAT=
Example 5: How do I add convenient IDs (e.g., 1, 2, 3...) to the control file?
Give NAME1= a value beyond the end of the data record.
NAME1=100 ; a number that is bigger than the longest data record
NAMELENGTH = 5 ; allows numbers up to 99999