Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EFFECT Specifies single-line spacing. Prints a string value (NAME) right-justified in 10 columns. Leaves three spaces (between the first and the second values). Prints a real value (GROSS) right-justified in seven columns with two decimal places. Leaves two spaces (between the second and the third values) Prints an integer value (DEPEND) right-justified in third value.
2X I2
DESCRIPTOR Aw
EFFECT Exactly w characters are printed. If there are more than w characters in the associated string value, the extra characters on the right are not printed; if there are fewer than w characters, the string value is padded with blanks on the left (right-justified). The number of character sprinted exactly matches the length of the output list item. A real number is printed right-justified in w columns. The fractional part is rounded to d decimal places. An integer is printed right-justified in w columns. There are n blanks or spaces printed. EFFECT Prints the current line on the line following the previous line (singleline spacing). Leaves one blank line between the current line and the previous line (double-line spacing). Prints the current line at the top of the next page. Prints the current line over the previous line.
Fw.d
Iw nX DESCRIPTOR or 1X 0 l +
EDIT DESCRIPTOR 1X
CORRESPONDING MEANING INPUT LIST ITEM None Skip the first column in the line.
A4
FIRST
Treat the next four columns in the line (2-5, in this case) as a field containing a string (JOHN), which is to be stored in the variable FIRST. Skip the nest three columns in the line (columns 6,7, and 8).
3X
None
A4
LAST Treat the next four columns in the line (9-12) as a field containing a string (CAGE), which is to be stored in the variable LAST.
2X
None Skip the next two columns in the line (columns 13,14).
I5
IDEMPL Treat the next five columns (15-19) as containing a five-digit integer (37458) to be stored in variable IDEMPL.
1X F5.1
None HOURS Skip the next column in the line (column 20). Treat the next five columns (21-25) as containing a real number (35.0) with one digit (0) to the right of the decimal point. This number is to be stored in the variable HOURS. Skip the next column in the line (column 26). Treat the next four columns (27-30) as containing a real number (6.75) with two digits (75) to the right of the decimal point. This number is to be stored in the variable RATE. Skip the next column in the line (column 31). Treat the next four columns (32-35) as containing a real number (0.0), with one digit to the right of the decimal point. This number is to be stored in the variable OTHRS. CORRESPONDING MEANING INPUT LIST ITEM
1X F4.2
None RATE
1X F4.1
None OTHRS
The associated string RAISEMASSOCIATION is to be entered into the line being formatted. (The 1 is not printed; it is used for carriage
control.) 9X A8 None DATE A field of width 8 (eight print positions) is to be used to print the character string stored in DATE. / First Continuation Line 0, HOME TABLES None The string HOMETABLES is to be entered into the line being formed. (The 0 is not printed; it is used for carriage control.) Indicates the end of an output line. None Indicates the end of the output line being formed. A field of nine blanks is to be entered into the line being formed.
None
None The string AMOUNT = $ is to be entered into the line being formed. The 0 is not printed; it is used for carriage control.) A field of width 8 is to be used t print the real number stored in AMOUNT (two digits will appear to the right of the decimal point). Indicated six spaces are to be skipped. MONTHS The string LOANMONTHS = is to be entered to the line being formed. A field of width 3 is to be used to print the integer stored in MONTHS.
F8.2
AMOUNT
6X LOAN MONTHS) = I3
None None
STATEMENT
Formatted PRINT PRINT 25, MONTH, DAY 25 FORMAT (1, A, 1X, I2)
EFFECT Displays a character value MONTH, a blank, and a twodigit integer value (DAY) on a new page.