1.List input method
2.Named input method
3.Column input method
4.Format input method
5.Absolute input method
6.Mixed input method
'3' to '6' are advanced list input methods
List input method:
Data values are separated by at least one space or any character data value does not contain embedded space then go for list input method.
Storage Process:
8 characters for character values
12 digits for numeric varaibles.
Length Statement:
Register the variable specific length
Charcter variable can be increased upto 256 characters.
Syntax: length <variable name> <data type> <number>
Data employ;
Infile cards;
Input eid name $ des $ salary;
cards;
101 Kirankumar Tester 3244
102 Pavan Programmer 9809
103 Laxmikant Analyst 8989
;
PC Storage process for data:
1character -> 1 byte, 1numeric digit -> 1byte
SAS default recognizes up to 12 digits more than 12 digits load in scientific format (en).
Data credits;
Infile cards;
Input crdno;
cards;
12345678954321
23665321456765
;
Proc print data= credits;
run;
2.Named input method
3.Column input method
4.Format input method
5.Absolute input method
6.Mixed input method
'3' to '6' are advanced list input methods
List input method:
Data values are separated by at least one space or any character data value does not contain embedded space then go for list input method.
Storage Process:
8 characters for character values
12 digits for numeric varaibles.
Length Statement:
Register the variable specific length
Charcter variable can be increased upto 256 characters.
Syntax: length <variable name> <data type> <number>
Data employ;
Infile cards;
Input eid name $ des $ salary;
cards;
101 Kirankumar Tester 3244
102 Pavan Programmer 9809
103 Laxmikant Analyst 8989
;
PC Storage process for data:
1character -> 1 byte, 1numeric digit -> 1byte
SAS default recognizes up to 12 digits more than 12 digits load in scientific format (en).
Data credits;
Infile cards;
Input crdno;
cards;
12345678954321
23665321456765
;
Proc print data= credits;
run;
ReplyDeleteWorthful SAS Programming tutorial. Appreciate a lot for taking up the pain to write such a quality content on SAS Programming tutorial. Just now I watched this similar SAS Programmming tutorial and I think this will enhance the knowledge of other visitors for sure. Thanks anyway.:-https://www.youtube.com/watch?v=4PtMFE4IjLg&t=456s
Very Impressive SAS Programming tutorial. The content seems to be pretty exhaustive and excellent and will definitely help in learning SAS Programming. I'm also a learner taken up SAS Tutorial and I think your content has cleared some concepts of mine. While browsing for SAS Tutorial on YouTube i found this fantastic video on SAS Programming. Do check it out if you are interested to know more.:-https://www.youtube.com/watch?v=4PtMFE4IjLg&t=456s
ReplyDelete