| View previous topic :: View next topic |
| Author |
Message |
kumar26fl Beginner
Joined: 08 Apr 2010 Posts: 14 Topics: 9
|
Posted: Tue Jan 04, 2011 5:12 pm Post subject: SAS INPUT statement question |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jan 05, 2011 1:56 pm Post subject: |
|
|
Does the manual say anything? _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
| Back to top |
|
 |
chandra Beginner
Joined: 26 Sep 2003 Posts: 130 Topics: 36
|
Posted: Thu Jan 06, 2011 8:41 pm Post subject: |
|
|
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 |
|
 |
|
|
|