Correct Answer : Get Lastest Questions and Answer : Explanation: To read data from multiple lines you can use either #n or / . However, it depends which one you choose. Like if you want to read it sequentially than you will not use #n syntax, but / . This / will help you to read data in sequence line by line. You should not use semicolon until you finish line read.
Question : You have been given below dataset
Now you want to read ID first from line 4 and then go back to line 1 to read course_name and date, which of the following syntax are correct?
1. Input #4 id $ \ course_name $ course_date mmddyy8.;
2. Input #4 id $ @1 course_name $ course_date mmddyy8.;
4. Input #4 id $ #1 course_name $ course_date mmddyy8.;
Correct Answer : Get Lastest Questions and Answer : Explanation: To reach absolute line number you should have used #n line control, it help you read data which are not sequential.
Correct Answer : Get Lastest Questions and Answer : Explanation: As you can see line control start at #4 and in total we have 4 records are being read using both / and #n syntax. So there are 24 records in raw file which will generate 6 observations.