Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
[ Legal | AS/400 Glossary ]<br />
printf - Write formatted output<br />
Synopsis<br />
Description<br />
printfformat[ argument ... ]<br />
You can use printf to format and display output on standard output. The syntax is<br />
similar to the ILE C/400 printf() function. printf formats using the following<br />
conversion control string syntax:<br />
%[flags][width].[precision]conversion<br />
conversion specifies how the corresponding argument is displayed. You must<br />
specify one of the following conversion characters:<br />
v c Unsigned character.<br />
v d Signed decimal number.<br />
v e,E Scientific notation.<br />
v f Floating point number.<br />
v g,G Scientific notation with significant digits.<br />
v i Signed decimal number.<br />
v o Unsigned octal number.<br />
v s String.<br />
v u Unsigned decimal number.<br />
v x Unsigned hexadecimal number with digits 0123456789abcdef.<br />
v X Unsigned hexadecimal number with digits 0123456789ABCDEF.<br />
flags control how the argument is displayed in the following ways:<br />
v - Left justify arg within the field.<br />
v + Prefix all numbers with a+or-.<br />
v space Prefix all numbers with or -.<br />
v 0 Pad field width with leading zeroes for d, e, E, f, g, or G.<br />
v # Prefix octal numbers with 0.<br />
v Prefix hexadecimal numbers with 0x for x or 0X for X.<br />
v Display decimal point for e, E, f, g, or G.<br />
v Display trailing zeroes for g or G.<br />
width is the minimum number of character positions displayed. Using an asterisk (*)<br />
character for the width means the value of the next argument is the field width.<br />
The meaning of precision depends on the conversion character.<br />
v d,i,o,u,x,X Precision specifies the minimum number of digits to be displayed.<br />
v e,E,f Precision specifies the number of digits to be displayed after the decimal<br />
point.<br />
v g,G Precision specifies the maximum number of significant digits.<br />
v s Precision specifies the maximum number of characters to be displayed.<br />
Chapter 4. Utilities 75