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 INPUT statement question

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


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Tue Jan 04, 2011 5:12 pm    Post subject: SAS INPUT statement question Reply with quote

Hello,
I am using mainframe SAS and I would like understand the following INPUT statement especially the fields in paranthesis.
Code:

 INPUT @39   (INT_CALC_TYPE1-INT_CALC_TYPE8)    ($ 3.  +169)     
       @42   (INT_CALC_CODE1-INT_CALC_CODE8)    ($ 2.  +170)     
       @57   (CURRENTRATE1-CURRENTRATE8)        (PD5.6 +167)     
       @105  (INT_PAID_ITD1-INT_PAID_ITD8)      (PD6.2 +166)     
       @111  (INT_ACCRUED_MTD1-INT_ACCRUED_MTD8)(PD8.6 +164)     
       @119  (INT_ACCRUED_YTD1-INT_ACCRUED_YTD8)(PD8.6 +164)     
       @127  (INT_ACCRUED_ITD1-INT_ACCRUED_ITD8)(PD8.6 +164)     
       @135  (ORIG_ACCR_TERM1-ORIG_ACCR_TERM8)  (PD2.  +170)     
       @137  (RMNG_ACCR_TERM1-RMNG_ACCR_TERM8)  (PD2.  +170)     
       @139  (ACCRUALSTRTDTE1-ACCRUALSTRTDTE8)  (PD4.  +168)     
       @143  (ACCRUALLASTDTE1-ACCRUALLASTDTE8)  (PD4.  +168)     
       @57    CURRENTRATE    PD5.6                               
       @105   INT_PAID_ITD   PD6.2                               
       @111   INT_ACCRUED_MTD PD8.6                               
       @119   INT_ACCRUED_YTD PD8.6                               

Take for example: I see the statements:
Code:

 @57   (CURRENTRATE1-CURRENTRATE8)        (PD5.6 +167)
and
@57    CURRENTRATE    PD5.6       

What does this mean? When I output this to a permanent dataset using PUT statement, how should I handle these?

Thanks
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jan 05, 2011 1:56 pm    Post subject: Reply with quote

Does the manual say anything?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
chandra
Beginner


Joined: 26 Sep 2003
Posts: 130
Topics: 36

PostPosted: Thu Jan 06, 2011 8:41 pm    Post subject: Reply with quote

Hi Kumar26fl,

Quote:

@57 (CURRENTRATE1-CURRENTRATE8) (PD5.6 +167)


Means it need to read the packed decimal field at starting position 57 for CURRENTRATE1 and then for CURRENTRATE2 till CURRENTRATE8 then the cursor will be moved 167 position forward.


Quote:

@57 CURRENTRATE PD5.6


means it will read packed deciamal data at position 57 for CURRENTRATE.

Thanks,
Chandra.
_________________
Regards,
Chandra
Back to top
View user's profile Send private message
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