HP-UX SNAplus2 RJE User's Guide

SNAplus2 RJE Commands
snaprjesend
Chapter 4 95
Use the ˜- [option]:prompt control line for opening STDIN as a new
source. You can use this control line to redirect input from a file. Note
that the prompt in this case is only a message to indicate that the file is
being read since the file is being redirected to STDIN. Use the
snaprjesend command:
snaprjesend RJE1 masterfile < datafile
where masterfile contains the lines:
.
.
.
//* JCL cards here
˜˜ Comment line. Read the file from STDIN and do not
˜˜ translate to EBCDIC. Also, display a message to the user
˜˜ the file is being read.
˜- -b:Data being read from STDIN
//* ADDITIONAL DATA HERE OR END OF FILE
.
.
.
Example 4
To interactively enter data from the terminal during the snaprjesend
command, use the ˜+ [option]:prompt control line.
Enter the command:
snaprjesend RJE1 masterfile
where masterfile contains:
.
.
.
//* JCL cards here
˜˜ Prompt the user to begin to enter data. Turn off
˜˜ control lines so that if the data contains a tilde
˜˜ character, it will not be interpreted incorrectly.
˜+ -i:Begin entering data from the terminal now
.
.
.
Example 5