home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: bit.listserv.sas-l
- Path: sparky!uunet!gatech!taco!unity.ncsu.edu!realliso
- From: realliso@unity.ncsu.edu (Robert Allison)
- Subject: line length limit?
- Message-ID: <1992Sep1.213745.29196@ncsu.edu>
- Sender: news@ncsu.edu (USENET News System)
- Organization: North Carolina State University Project Unity
- Date: Tue, 1 Sep 1992 21:37:45 GMT
- Lines: 59
-
- I'm running SAS 6.07 on a DECstation under X-Windows.
-
- I have recently received a tape with population projections
- from the US Census. There are 30 different series, with
- projections by age, race, and sex for 1988-2080.
-
- The whole file is ~200 Mb, so I have copied out the 2346 lines
- for the Series 14 projection for years 1988 - 2010 (~0.6 Mb)
-
- I have transferred this file to my Unix workstation, but the
- lines are so long (261 characters) that several Unix commands
- won't even work on it. (eg. tail will work, but head won't,
- also cut command I had planned to use to get certain columns
- does not seem to work with this size lines.)
- SAS does not seem to want to read in the data correctly either.
-
- Do any of you guys have tricks for handling long lines on Unix
- systems (and/or in SAS)? If all else fails, I'll probably write
- a C program to extract out certail columns like I was wanting
- cut to do.
-
- Thanks,
- Robert Allison (realliso@unity.ncsu.edu)
-
- -----here's my SAS code---------
-
- data ser14;
- infile '/tmp/bob/ser14.88_10';
- input
- sernum 1-2
- year 3-6
- age 7-9
- totpop 10-21
- totmale 22-33
- totfema 34-45
- totwhite 46-57
- /* whitmale 58-69
- whitfema 70-81
- totblack 82-93
- blacmale 94-105
- blacfema 106-117
- totdeath 118-129
- totmdeat 130-141
- totfdeat 142-153
- whitdeat 154-165
- wmdeaths 166-177
- wfdeaths 178-189
- blacdeat 190-201
- bmdeaths 202-213
- bfdeaths 214-225
- totbirth 226-237
- whitbirt 238-249
- blacbirt 250-261 */
- ;
- run;
-
- proc print data=ser14;
- run;
-
-