HP-UX SNAplus2 RJE User's Guide

SNAplus2 RJE Commands
snaprjesend
Chapter 492
Note the following: All input taken from the terminal
in binary mode is entered as character data, and
carriage returns are included in the file whenever you
press Return.
Example usage: To open terminal as source and
specify the -b option and a prompt that says Enter
data now, for example, you would enter:
˜+ -b:Enter data now
˜! [option]command
Execute an HP-UX command.
Execute the specified HP-UX command through the
shell. Any output from the command will be included in
the file to be transmitted. Valid snaprjesend options
are either -b or -i. Note that -b and -i cannot be
specified at the same time. These options will not be in
effect after the shell command has terminated.
If you do not specify the -b option, snaprjesend expects
that all data in a job is text data. If you include data
within the job that contains non-text characters (such
as nulls), a problem might occur when you submit the
job. You might receive the following error message:
SNAplus2 RJE:9513 - error copying
data during interpretation
To avoid this problem, include the data as binary data.
If you want to convert this data from ASCII to
EBCDIC, you can do it while including the data with
the iconv command. For example:
˜! -b iconv -f roman8 -t american_e
filename
(See the man page iconv (1) or the HP-UX Reference
Vol1: Section 1).
Note that if you use ˜! -b, a record separator will be
placed after the last byte of data. This will not
necessarily occur if you do not specify -b. If the -b
option is not used, end all included text files with a
new-line character in order to separate them from your
JCL.