Hi! I am running SAS in CAS (Cloud Analytic Services). The SAS format IB4. is available there.
In my SAS program integer numbers are converted from character form into numeric form, many times. See example:
proc format;
value testf 0-10 = "1"
11-20 = "2"; /** etc. */ run;
This is used in a Data step: nnewval = INPUT( PUT(nval, testf.), 2.);
The part INPUT(PUT) is executed MANY, MANY times, so I want to use SAS formats like IB8.
However this is NOT supplied in CAS SAS.
Is there any other "integer binary" format that can be used?
My thought: In the right hand side of the format definition, do not write the character integer,
but rather a binary representation of the integer. That takes slightly more time in the creation of the format.
In the next step, when using the format, the INPUT will be somewhat faster, since 2. is replaced by an "integer format".
I tested this in WPS SAS, with IB8. The computations were speeded up. It was worth the extra programming! Many thanks in advance for any suggestions.
CAS SAS is great to use!
/Br Anders
... View more