Login  Register

Re: To Convert Variable width as per datamap.

Posted by Maguin, Eugene on Feb 20, 2007; 3:40pm
URL: http://spssx-discussion.165.s1.nabble.com/To-Convert-Variable-width-as-per-datamap-tp1073930p1073931.html

Abdus,

I'll assume that you want to convert q1 from A30 to A165 as I don't clearly
understand you.

Rename variables (q1=temp).
String q1(a165).
Compute q1=temp.

As for q2, use the format statement.

Format q2(f10.0) or (f10.2), depending on how many places to the right of
the decimal you want.

Gene Maguin