![]() Chapter Contents |
![]() Previous |
![]() Next |
| INPUTC and INPUTN |
| Category: | Formatting |
| Syntax | |
| Details | |
| Examples | |
| Example 1: Using the INPUTC Function | |
| Example 2: Using the INPUTN Function | |
| Example 3: Using INPUTN with a DATE Value | |
| See Also | |
Syntax |
| char-value=INPUTC(char-string,char-informat); |
| num-value=INPUTN(char-string,num-informat); |
| Details |
| Examples |
Read the character variable NAME, using the $UPCASE3. informat:
name='sas'; cval=inputc(name,'$upcase3.'); put cval=;This program produces the following output:
cval=SAS
amount='$20,000.00'; informat='comma10.2'; salary=inputn(amount,informat); put salary=;This program produces the following output:
salary=20000
Read the value in DATE and apply the JULIAN8. informat:
date='90091'; ndate=inputn(date,'julian8.'); put ndate=;This program produces the following output:
ndate=11048
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.