The following programs demonstrate the use of the FOR statement
to create a record stream. These programs:
o Declare a variable dept_code
o Prompt for a value for dept_code
o Start a READ_ONLY transaction
o Create a record stream defined by a record selection
expression that uses the value of dept_code
o Display the department name for each record in that stream
The C program uses the read_string function to prompt for and
receive a value for dept_code. For more information on this
function, see Appendix B of the "RDML Reference Manual".
Additional Information:
explode
extract