STAT 440 Lecture 8: Input Methods Part II
Document Summary
In this method the variables are listed with the data types and width of the columns which specify the value of the single column of data. For example if an employee name contains maximum 9 characters and each employee name starts at 10th column, then the column width for employee name variable will be 10-19. Following code shows the use of column input method. When we execute above code, it produces following result ". In this method the variables are read from a fixed starting point until a space is encountered. As every variable has a fixed starting point, the number of columns between any pair of variables becomes the width of the first variable. "@n" is used to specify the starting column position of a variable as the nth column. The following code shows the use of formatted input method.