MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SAS-Packed decimal format

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vijayakumar
Beginner


Joined: 28 Jul 2006
Posts: 17
Topics: 9

PostPosted: Tue May 15, 2012 5:10 am    Post subject: SAS-Packed decimal format Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group