Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using the print action for output z/OS UNIX System Services User's Guide SA23-2279-00 |
|
So far, print has been the only action discussed. As you
have seen, print can display an entire record. It can also
display selected fields of the record, as in:
This displays
the first field of every record with a second field that is bridge.
The output is:
print can display more than a single field. If
you give print a list of fields separated by commas, as in:
print displays
the given fields separated by single blanks, as in:
The print action can display strings and numbers along
with fields. For example:
prints:
In this instruction, the print action prints
a string containing a $, followed by a blank, followed
by the value of the fourth field in each selected record.As an exercise, predict the output of the following:
You can
check your predictions by running these programs against the hobbies file. |
Copyright IBM Corporation 1990, 2014
|