vijayakumar Beginner
Joined: 28 Jul 2006 Posts: 17 Topics: 9
|
Posted: Tue May 15, 2012 5:10 am Post subject: SAS-Packed decimal format |
|
|
I have a field in cobol file with field S9(18 ) comp-3 and writing in SAS dataset. In SAS the field is defined as CUST_ID PD10.
In order to verify the data in the sas dataset, the sas field is written to output file but the output is not coming correctly if the field as 18 digits or more.
Input value: 115346343636363636(18 digits)
Output value: 115346343636363632
But if the input is 15346343636363636(17 digits) it is showing correctly in the output, Could you please help me..
Code to display the SAS dataset:
DATA _NULL_;
SET OUTFILE(KEEP=CUST_ID);
FILE OUTFIL2;
PUT @1 CUST_ID 20.;
RUN;
Thanks
Vijay |
|