Date: Tue, 12 Nov 1996 16:11:54 PST
Reply-To: TWB2%Rates%FAR@GO50.COMP.PGE.COM
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: TWB2%Rates%FAR@GO50.COMP.PGE.COM
Subject: Re: miscellaneous
1) On a real computer it is not an issue 8) , so I can not help you.
2) Ditto.
3) Several. CHARVAL=PUT(NUMBER,5.0); NUMBER=INPUT(CHARVAL,5.0); Both of these
require a format--you may be able to use BEST. There is also default
conversion: if you assign a character to a numeric variable or a numeric to a
character, SAS will convert. This puts messy messages in the log, and has
performance impacts in some versions and platforms.
4) You probably need to add LRECL=nnnn or RECFM=V on your FILENAME statement.
The Windoze defaults are LRECL=132 and RECFM=V.
5) You may be able to use either VAR1-VARn or VAR1--VARn. Look up variable
lists in a Language Reference.
Tim Berryhill - Contract Programmer and General Wizard
TWB2@PGE.COM or http://www.aartwolf.com/twb.html
Frequently at Pacific Gas & Electric Co., San Francisco
The correlation coefficient between their views and
my postings is slightly less than 0
----------------------[Reply - Original Message]----------------------
Sent by:Kerstin Terhoeven <terhoeven@LUR.RWTH-AACHEN.DE>
There are some short questions I have not been able to find an answer to by
reading my manuals:
1. How can I change the path that is automatically offered me after starting
sas and choosing "File Open" to read a program into the program editor?
2. How can I interrupt an sas-program I submitted?
3. Is there a function to change a numeric variable into a character variable
and vice versa? Something like value(variable) or string(variable).
4. When transferring text files into sas-datasets by saying
data filename;
infile 'textfile.txt' missover;
input var1 ... varn;
...
I get into trouble because only a limited number of signs in a line (156?) is
read. Therefore the last variables in a line are not transferred into the sas
dataset. What I am doing now is to split the textfiles, create several sas
datasets and merge them. Is there a more elegant way?
5. Is it possible to shorten the var statement e.g. in
proc means;
var x1 x2 x3 x4 x5 ...xn;
Maybe there is something similar to the combination of array statement and do
while-end statement to be used in a datastep that can be applied in a
procedure?
Thanks for your advice!
=====================================================================