HP-UX SNAplus2 RJE User's Guide

SNAplus2 RJE Components and Operation
Processing Input Data
Chapter 344
This sends the file as exchange data with the default record length of 128
bytes.
snaprjesend -e -m150 RJE1 myjob
This command sends the file as exchange data with a maximum record
length of 150 bytes. (See the description of the“snaprjesend” command in
chapter 4 for more information.)
Sending Text or Binary Files
Most jobs sent with RJE will be text files in ASCII. By default, SNAplus2
RJE converts the supplied data into EBCDIC before sending it to the
host, so that it can be accessed with a host editor.
In some cases, you may need to send binary data to the host (submit data
without code conversion). To send binary data, do the following:
Step 1. Put the binary data into a separate file.
Step 2. Include this file within the main job file using the ˜! -b cat command.
Example:
//XNKJA JOB (05604Q,A,X),
// MSGCLASS=A,
// CLASS=E,
// USER=XNKBJ,PASSWORD=DEMO
//SETUP EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD *
TEST FILE LINE 1
TEST FILE LINE 2
TEST FILE LINE 3
TEST FILE LINE 4
˜! -b cat datafile
/*
This means that SNAplus2 RJE will code convert the JCL within the
main job file (to enable the host to use it), but it will send the included
data as binary data. For more information, see “Using Control Lines”
with the “snaprjesend” command in Chapter 4.
SNAplus2 RJE divides the supplied data into records in different ways
for text and binary data as follows: