CDRCV Command Format

Following are the parameters for the CDRCV command. Required parameters are in bold.

Command Parameter
CDRCV SNODE(remote-node-name)
SNODENVIRN(remote-environment-name)
FDSN(from remote-data-set-name)
TDSN(to data-set-name)

FMSYSOPTS(‘

PRECMPR(*YES|*NO)

CODEPAGE(nnnnn,nnnnn)

EXITCMD(valid i5/OS command)

FAILCMD(valid i5/OS command)

SNDFFD(*YES|*NO)

TEXTFILE(*YES|*NO)

TYPE(FILE|MBR|OBJ)

CCSID(nnnnn)

EORCHAR(xxxx)

ALWNULL(Y)

’)

Note: FMSYSOPTS is required if sending node is i5/OS)

TOSYSOPTS(’

DECMPR(*YES|*NO)

CODEPAGE(nnnnn,nnnnn)

EXITCMD(valid i5/OS command)

FAILCMD(valid i5/OS command)

TYPE(FILE|MBR|OBJ|SPLF)

XTRAN(table-name)[XTRANLSO(so-code)|

XTRANLSI(si-code)|XTRANLDATA(MIXED|DBCS)]

CCSID(nnnnn)

EORCHAR(xxxx)

’)

CKPTINV(n)
CLASS(n)
COMPRESS(*NO|*YES|*EXT|X\xx\|C\cc\)
CRC(*INITPARMS|*NETMAP|*OFF|*ON)
ECTUNING (ecclevel, ecwinsize, ecmlevel)
EXCLUDE(generic, member-name, (start-range/stop-range), ‘list’)
FALIAS(*YES|*NO)
FBUFND(n)
FDBPARMS(dbid, dbsubid)
FDCB(modeldcb, blksize, den, dsorg, keylen, linct, lrecl, optcd, recfm, rkp, trtch)
FDISP(current, normal end, abnormal end)
FIOEXIT(program-name)
FIOPARM(parameter-name)
FLABEL(seqno,labeltype,pswdread,inout,retpd|expdt)
FLINK(vmuserid,pwd,accmode,ccuu)
FMSVGP(data-set-name)
FPDSDIR(*YES|*NO)
FSQL(sql-statement|DSN=data-set-name)
FTYPE(entry-name)
FUNIT(unit-name)
FVOL(private, volcount, ser)
FVOLREF(data-set-name)
FVSAMCAT(dsn,vmid,pwd,accmode,cuu)
NOTIFY(userid)
PLEXCLASS(user-defined class)
PNAME(process-name)
PNODEID(id, pswd, newpswd)
REPLACE(*YES|*NO)
RMTWORK(*YES|*NO)
SACCT(snode-accounting-data)
SECOPTIONS(* *)
SELECT(member, new-name, R/NR, ‘list’)
SNODEID(id, pswd, newpswd)
TDISP(current)

TRACEOPT

Trace Instructions:

(L,S,F,C,X,K,D,H,V,W,P|*NONE|*ALL|*EXT|

*COMMON|*INITPARMS|*CURRENT

Command Trace Options:

L,S,F,C,X,K,D,H,V,P|*ALL|*EXT|*COMMON|

*NONE)

Note: The CLASS parameter is not used by Sterling Connect:Direct for i5/OS.

Required Parameters

Unless otherwise noted, these required parameters apply to all remote node environments.
  • SNODE(remote-node-name) specifies a 1–16 character alphanumeric name for the remote node. The node name must be defined in the network map.
  • SNODENVIRN(remote-environment-name) specifies the remote node environment.
  • FDSN(‘from remote-data-set-name’) specifies the source file name. File names are verified based on the i5/OS standard file name conventions. The length of the input field displayed is 132 characters, by default. If you want to increase the length of the field to 256 characters, type an ampersand(&) followed by a blank in the first two positions of the field. Sterling Connect:Direct for i5/OS provides two systems for handling the files: Native File System and Integrated File System. The following table summarizes the data set name requirements for Sterling Connect:Direct platforms.
    SNODENVIRN FDSN Format Special Considerations
    OS/400

    Native File System

    ‘library-name/file-name’ ‘library-name/file-name

    (member-name)’

    Enclose in single quotation marks.

    Integrated File System

    ‘/QSYS.LIB/library-name.LIB /file-name.FILE

    /member-name.MBR’ or

    ‘/directory/file-name| /QLANSrv/file-name|

    /QDLS/folder-name| /QOpenSys/file-name’

    You cannot specify the *SNDFFD, *SELECT, and *EXCLUDE parameters with the integrated file system.

    Spool File Support

    spooled-file-name

    Do not use member names longer than eight characters when sending to z/OS and MSP. The results are unpredictable.

    OS/390, MSP Standard z/OS DSN naming conventions.

    Single quotes allow special characters. Do not use member names longer than eight characters. The results are unpredictable.

    VM Fully qualified file-name
    Tandem \system.$volume.subvolume.filename
    Microsoft Windows

    drive:\directory\subdirectory\filename

    or

    \\servername\sharepointname\subdirectory\filename

    UNIX /directory/subdirectory/filename
    OpenVMS node::device:[directory]filename.type;version

    When you are copying a file, the file specification must be enclosed in single quotation marks if it uses spaces or other special characters not recognized by the other node.

    Stratus VOS Fully qualified path and file name

    Enclose the file name in double quotation marks when you use a reserved word (statement name or keyword) for the file name.

    Note: The values of *LIBL, *CURLIB, and QTEMP cannot be used when sending to or from an iSeries system using Sterling Connect:Direct for i5/OS. A specific library name must be used for copying from or to a data set on the iSeries.
  • TDSN(‘to data-set-name’) specifies the local file name. File names are verified based on the i5/OS standard file name conventions.

    The length of the input field displayed is 132 characters, by default. If you want to increase the length of the field to 256 characters, type an ampersand(&) followed by a blank in the first two positions of the field.

    Sterling Connect:Direct for i5/OS supports two file systems: native and integrated. The file system description begins on page 4-45. The DSN format summaries for i5/OS are presented with the FDSN parameter description on page 4-49.

    Note: The values of *LIBL, *CURLIB, and QTEMP cannot be used when sending to or from an iSeries system using Sterling Connect:Direct for i5/OS. A specific library name must be used for copying from or to a data set on the iSeries.
  • FMSYSOPTS(‘

    PRECMPR(*YES|*NO)

    EXITCMD(valid i5/OS command)

    FAILCMD(valid i5/OS command)

    SNDFFD(*YES|*NO)

    TEXTFILE(*YES|*NO)

    TYPE(FILE|MBR|OBJ)

    CODEPAGE(nnnnn,nnnnn)

    CCSID(nnnnn)

    EORCHAR(xxxx)

    ALWNULL(Y)

    ’)

    specifies remote system operations. All parameters shown are valid only if the sending node is i5/OS. The maximum number of characters for SYSOPTS is 2K. This parameter is required when the remote file is on another Sterling Connect:Direct for i5/OS node.

    For additional information about valid platform-specific SYSOPTS parameters, see the appropriate COPY statement section of the IBM Sterling Connect:Direct Processes Web site at http://www.sterlingcommerce.com/documentation/processes/processhome.html.

    PRECMPR(*YES|*NO) specifies that the source file was previously compressed using the CDCOMP command. To receive a file that has been compressed, you must specify the PRECMPR(*YES) parameter with the CDRCV command. For information on how to compress files, refer to Chapter 9, Compressing Files. This is for i5/OS only.

    EXITCMD(valid i5/OS command) specifies a command to be executed only if the copy process is successful.

    FAILCMD(valid i5/OS command) specifies a command to be executed only if the copy process is not successful.

    SNDFFD(*YES|*NO) specifies whether the receiving node transfers file field descriptions. This is for i5/OS only.

    Use the following formula to determine whether a file can be sent with the file field descriptions. If the bytes required value is greater than 12K, you cannot transfer the file field descriptions.

    (12 x number of keys)+(45 x number of fields)+SYSOPTS=bytes required
    Note: You cannot use this parameter with the integrated file system.

    TEXTFILE(*YES|*NO) specifies that the file being sent is a text file.

    TYPE(FILE|MBR|OBJ|SPLF) specifies the type of data to be copied. You must define the type of data structure to be copied as one of the following:

    • FILE specifies that the file being copied is a physical database file.
    • MBR specifies that the member being copied is a member of a physical database file.
    • OBJ specifies that the data to be copied is in save file format.
    • SPLF specifies that the data to be copied is in i5/OS spooled output format.

    CODEPAGE(nnnnn,nnnnn) converts data from one code page to another. The supported conversions are identified on the IBM Web site in the V5R1 Information Center, DB2 Universal Database for iSeries SQL Reference, Appendix E. CODEPAGE() on Sterling Connect:Direct for i5/OS relates to CODEPAGE() developed for the z/OS system, UNIX, and Microsoft Windows.

    nnnnn identifies the IBM CCSID code page number to convert from and the IBM CCSID code page number to convert to. If the FROM code page or TO code page is locale, the code page for the locale where Sterling Connect:Direct is executing is used. For example, if fmsysopts(codepage(locale,1208)), then the FROM code page is the code page for the locale and the TO code page is UTF-8.

    CCSID(nnnnn) specifies the coded character set ID to use when creating IFS files. If no character set ID is specified, the system default is used.

    EORCHAR(xxxx) specifies the two-to four-digit hexadecimal symbol to identify the character to use in text files as the end-of-record character, for example, EORCHAR(0A).

    ALWNULL(Y) specifies if NULLS characters will be processed when sending DB2 files.

  • TOSYSOPTS(‘

    DECMPR(*YES|*NO)

    EXITCMD(valid i5/OS command)

    FAILCMD(valid i5/OS command)

    TYPE(FILE|MBR|OBJ|SPLF)

    XTRAN(table-name) [XTRANLSO(so-code)|

    XTRANLSI(si-code)|XTRANLDATA(MIXED|DBCS)]

    CCSID(nnnnn)

    EORCHAR(xxxx)

    ’)

    specifies system operation parameters at the local node (i5/OS). The maximum number of characters permitted for TOSYSOPTS is 2K.

    DECMPR(*YES|*NO) specifies whether the local Sterling Connect:Direct is to decompress the received file. DECMPR(*NO) instructs the local system to place the received data in a database file without decompressing it.
    Note: Ensure that the destination file contains no members before you receive a file with DECMPR(*NO) specified.

    EXITCMD(valid i5/OS command) specifies a command to be executed only if the copy process is successful.

    FAILCMD(valid i5/OS command) specifies a command to be executed only if the copy process is not successful.

  • TYPE(FILE|MBR|OBJ|SPLF) specifies the type of data structure to be created. You must define the data structure to be created as one of the following:
    • FILE specifies that the file being created is a physical database file.
    • MBR specifies that the member being created is a member of a physical database file.
    • OBJ specifies that the file being created is in save file format.
    • SPLF specifies that the data is copied to an i5/OS spooled output file.
    • The default is TYPE(FILE).

For each type, you can specify certain additional TOSYSOPTS parameters.

The following subparameters are valid for TYPE(FILE) and TYPE(MBR) files:
  • RCDLEN(record-length) specifies the data length for each record in the file.
  • FILETYPE(*SRC|*DATA) specifies the type of file to be created. Use this parameter whenever a file is created.
  • TEXT(‘text description’) specifies a text description to be associated with this member (and file, if created). This description cannot exceed 50 characters and must be enclosed in single quotes.
  • EXPDATE(expiration-date) specifies the date after which the new or replaced member cannot be used. If EXPDATE is not specified, then the file does not have an expiration date.
  • MAXMBRS(number|*NOMAX) specifies the maximum number of members a physical file can contain.
  • SIZE(#-of-recs|incr-value #-of-incrs|*NOMAX) is used when a new file is created for the file received.
  • AUT(*CHANGE|*ALL|*USE|*EXCLUDE) specifies the authority to be given to a user who does not have specific authority to the file or member, is not on the authorization list, and whose user group does not have specific authority to the file or member.
The following parameters are valid for TYPE(OBJ) files:
  • MAXRCDS(number-of-records|*NOMAX) specifies the maximum number of records the save file (which was created to hold the data received) can reach.
  • ASP(auxiliary-storage-pool) specifies the auxiliary storage pool from which the system allocates storage for the save file. Valid values range from 1–16. The default is 1.
  • TEXT(‘text description’) specifies a text description to be associated with this object. This description cannot exceed 50 characters and must be enclosed in single quotes.
  • AUT(*EXCLUDE|*CHANGE|*ALL|*USE) specifies the authority to be given to a user who does not have specific authority to the object, is not on the authorization list, and whose user group does not have specific authority to the object.

CODEPAGE(nnnnn,nnnnn) converts data from one code page to another. The supported conversions are identified on the IBM Web site in the V5R1 Information Center, DB2 Universal Database for iSeries SQL Reference, Appendix E. CODEPAGE() on Sterling Connect:Direct for i5/OS relates to CODEPAGE() developed for the z/OS system, UNIX, and Microsoft Windows.

nnnnn identifies the IBM CCSID codepage number to convert from and the IBM CCSID code page number to convert to. If the FROM code page or TO code page is locale, the code page for the locale where Sterling Connect:Direct is executing is used. For example, if tosysopt(codepage(1208,locale)), then the FROM code page is UTF-8 code page and the TO code page is the local code page.

The following TOSYSOPTS parameters are valid for TYPE(SPLF) files:
  • DEV(*JOB|*SYSVAL|device-name) specifies the name of the printer device description.
  • DEVTYPE(*IPDS|*SCS|*USERASCII) specifies the type of data stream created for a printer file from the data received.
  • PAGESIZE(page-length page-width) specifies the length and width of the page used by the printer. This parameter overrides the FORMTYPE parameter.
  • LPI(3|4|6|7.5|8|9) specifies the line space setting (lines per inch) on the printer.
  • CPI(5|10|12|13.3|15|16.7|18|20) specifies the printer character density, in characters per inch, for the printer.
  • OVRFLW(overflow-line-number) specifies the line number on the page at which overflow to a new page begins. The value specified must not exceed the forms length specified for PAGESIZE.
  • FOLD(*NO|*YES) specifies whether entire records are printed when the record length exceeds the form width.
  • RPLUNPRT(*YES ‘replacement-character’|*NO) specifies whether unprintable characters are replaced with printable characters when printed. It also specifies the replacement character.
  • ALIGN(*NO|*YES) specifies whether the page must be aligned in the printer before printing is started.
  • CTLCHAR(*NONE|*FCFC) specifies whether the data contains printer control characters.
  • CHLVAL(*NORMAL| (channel#1 line#1).. . (channel#12 line#12)) specifies the list of channel numbers with their assigned line numbers.
  • FORMFEED(*DEVD|*CONT|*CUT|*AUTOCUT) specifies the form feed attachments that the printer uses (4214, 5219, and 5553 printers only).
  • PRTQLTY(*STD|*DRAFT|*DEVD|*NLQ) specifies the quality of print produced.
  • DRAWER(1|2|3|*E1) specifies the source drawer to be used when automatic cut-sheet feed mode is used.
  • FONT(*CPI|*DEVD|font-identifier) specifies the font identifier to be used for the spooled output file.
  • CHRID(*DEVD|*SYSVAL| graphic-character-set code-page) specifies the character identifier to use for the spooled output file. *DEVD indicates that the CHRID value the device is designed to handle is used.
  • PAGRTT(*DEVD|*COR|0|90|180|270) specifies the degree of rotation (clockwise from the edge of the paper first loaded into the printer) of text on each page printed.
  • PRTTXT(‘print-text’) specifies a line of text to be printed at the bottom of each page printed. Up to 30 characters enclosed in single quotes can be specified.
  • JUSTIFY(0|50|100) controls the print positions of the characters on the page (in the spooled file) so the right margin is regular.
  • DUPLEX(*NO|*YES|*TUMBLE) specifies whether the spooled output file is printed on one or both sides of the paper.
  • SPOOL(*YES|*NO) specifies whether the data is sent to a spooled file before printing.
  • OUTQ(*JOB|*DEV|library-name/output-queue- name) specifies the output queue for the spooled output file created.
  • FORMTYPE(form-type) specifies the type of form to use in the printer when the spooled file is printed. The PAGESIZE parameter overrides this parameter.
  • COPIES(number-of-copies) specifies the number of copies to be printed. Valid values range from 1–255.
  • MAXRCDS(maximum-records) specifies the maximum number of records that can be placed in the spooled file. Valid values range from 1–500000.
  • FILESEP(number-of-file-separators) specifies the number of blank separator pages to be placed between each copy of the file printed.
  • HOLD(*YES|*NO) specifies whether the file is to be held on the output queue until released by the user.
  • SAVE(*YES|*NO) specifies whether the spooled output file is to be saved on the output queue once printed.
  • OUTPTY(*JOB|output-priority) specifies the scheduling priority of the file on the output queue.
  • USRDTA(user-data) allows up to 10 characters of data to identify the spooled output file

XTRAN(table-name) specifies the translation table to use. The named table object must exist in a library that is in the library list of the session manager job. If the library name is not in the list, the CDRCV command fails.

If the XTRAN keyword is present, then the following related optional keywords can also be used:
  • XTRANLSO (so-code) specifies extended translate local shift-out code. This keyword specifies the hexadecimal code to use for the local (i5/OS side) shift-out character and overrides the default value of 0E. You can specify any two valid hexadecimal digits.
  • XTRANLSI (si-code) specifies extended translate local shift-in code. This keyword specifies the hexadecimal code to use for the local (i5/OS side) shift-in character and overrides the default value of 0F. You can specify any two valid hexadecimal digits.
  • XTRANLDATA (MIXED|DBCS) specifies extended translate local data format. This keyword specifies the format of the data on the local (i5/OS side) of the COPY.
  • MIXED indicates that the data can contain both DBCS and SBCS characters and that SO/SI characters are used.
  • DBCS indicates that the data is pure DBCS characters and that no SO/SI characters are used.
  • XTRANPAD(pc) specifies that padding characters are in use. When DBCS data is translated from EBCDIC to ASCII, PAD specifies that the SHIFT-OUT and SHIFT-IN characters are replaced by a pad character to allow the displacement of fields within a record to remain unchanged during translation.

    When DBCS data is translated from ASCII to EBCDIC, PAD specifies that the input ASCII DBCS file is in a padded format. The character immediately preceding a DBCS character or string is overlaid by the SHIFT-OUT character. The character immediately following a DBCS character or string is overlaid with the SHIFT-IN character. This allows the displacement of fields within a record to remain unchanged during translation.

    pc is the pad character to be used during EBCDIC to ASCII translation. pc is ignored for ASCII to EBCDIC translations. If XTRANPAD is not used, the SI/SO characters are stripped from the file when transferring from EBCDIC to ASCII, and added to the records when sending from ASCII to EBCIDC.

The following rules apply to the use of the XTRAN keyword:
  • You must specify the XTRAN keyword to use extended translation. All other keywords are optional.
  • The default for local shift-out is the IBM standard x0E.
  • The default for local shift-in is the IBM standard x0F.
  • The default local data format is MIXED with SO/SI in use. XTRAN is not allowed with PRECMPR(*YES) or DECMPR(*NO)
  • If you receive a file from an ASCII platform using extended translation, you must specify in the FMSYSOPTS that the data type is binary. Refer to the IBM Sterling Connect:Direct Processes Web site at http://www.sterlingcommerce.com/documentation/processes/processhome.html for platform-specific SYSOPTS parameters.
  • If you receive DBCS data from an ASCII platform using the XTRAN keyword, ensure that the record length of the file on the i5/OS side of the transfer is large enough to contain the translated record.

    The record length of the file on the i5/OS side of the transfer is generally larger than the ASCII equivalent. For additional information, refer to the Maintaining Extended Translation chapter of the IBM Sterling Connect:Direct for i5/OS Installation and Administration Guide

CCSID(nnnnn) specifies the coded character set ID to use when creating IFS files. If no character set ID is specified, the system default is used.

EORCHAR(xxxx) specifies the two-to four-digit hexadecimal symbol to identify the character to use in text files as the end-of-record character, for example, EORCHAR(0A).

Optional Parameters

The following parameters, listed alphabetically, are optional. Unless otherwise noted, the parameters apply to all remote node environments.

CKPTINV(n)

Number of bytes, from 1K to 2 gigabytes, to send or receive before taking a checkpoint. The format is nnnnnnn, nnnnnnK, or nnnnnnM, where K specifies thousands of bytes and M specifies millions of bytes. A value of 0 specifies no checkpoint restart Sterling Connect:Direct for i5/OS uses the value you specify, rounded up to the nearest record boundary, to determine when to take a checkpoint. If you specify a value between 1 and 1023, the value becomes 1024 or 1K.

Checkpointing does not occur in the following cases, even if you specify a checkpoint interval:
  • The file being received is compressed by the remote node during the receive operation by the local node using the extended compression feature but is not being decompressed on the local node. That is, the TOSYSOPTS has DECMPR(*NO).
  • The file being received was precompressed on the remote node and is being decompressed on the local node during the receive operation. That is, the FMSYSOPTS has PRECMPR(*YES) and TOSYSOPTS has DECMPR(*YES).
  • A single z/OS partitioned data set member is being received.

A checkpoint interval specified here overrides the system-wide default value.

If you request checkpointing when you are transferring multiple members of a file, checkpoints are taken only at member boundaries regardless of the interval specified in the initialization parameters or in the CDSND or CDRCV command.

CLASS(n)

determines the node-to-node session on which a Sterling Connect:Direct operation can execute. The CLASS can be a number from 1–255. If you do not specify the CLASS parameter, it defaults to the number of maximum sessions defined in the mode description for the communications environment.
Note: The CLASS parameter is not used by Sterling Connect:Direct for i5/OS.

COMPRESS(*NO | *YES| *EXT | X\xx\ | C\cc\ )

specifies that the data is to be compressed, which reduces the amount of data transmitted as the file is copied from one node to another. The file is automatically decompressed at its destination unless DECOMP(*NO) is specified in TOSYSOPTS.
Note: Compression is CPU-intensive. Its effectiveness is dependent on the data and line speed and should be used only if it benefits the installation.

You should specify the primary compression character for text data or single-character repetitive data. Extended compression generally offers improved compression for all types of data.

*NO specifies no compression.

*YES enables compression. If *YES is specified, the default primary compression character is PRIMEchar=X\40\ (hex 40=“ ”).

If you specify *YES, Sterling Connect:Direct reduces the amount of data transmitted based on the following rules:
  • Repetitive occurrences (2–63) of the primary compression character are compressed to one byte.
  • Repetitive occurrences (3–63) of any other character are compressed to two bytes.

X\xx\ enables compression, where xx is the hexadecimal representation of the value to be used for the primary compression character.

C\cc\ enables compression, where cc is the character representation of the value to be used for the primary compression character.

*EXT specifies that extended compression is used to search for repetitive strings of characters in data and compress them to codes that are transmitted and converted back to the original string during decompression. Specify this parameter when line transmission speeds are limited, the CPU is available, and the data is repetitive.

CRC(*INITPARMS|*NETMAP|*OFF|*ON)

Determines whether node and Process statement overrides for Cyclic Redundancy Check (CRC) are allowed. If this value is set to *OFF, setting overrides for CRC checking will be ignored. The default value is *INITPARMS.

*INITPARMS specifies that the CRC setting is determined by the value for the initialization parameter TCP.CRC.

*NETMAP specifies that the CRC setting is determined by the value for the NETMAP parameter, Cyclic Redundancy Check. The value for the initialization parameter TCP.CRC must be set to *ON and the value for the initialization parameter TCP.CRC.OVERRIDE must be set to *YES.

*OFF specifies that CRC is disabled.

*ON specifies that CRC is enabled.

ECTUNING (ecclevel,ecwinsize,ecmlevel)

ECCLEVEL specifies the extended compression level, which affects how much CPU the extended compression routines use. Higher compression levels use more CPU but achieve greater compression. The valid values for this subparameter are 1–9, inclusive. The default value is *INITPARMS.

ECWINSIZE specifies the extended compression window size, which is specifically for the history buffer that is filled from the user’s input buffer ( both compressing and decompressing). The window specifies the amount of storage designated to maintain data previously read.

This data can be scanned for string matches. The extended compression window size affects how much virtual memory the extended compression routines use. Higher window size values use more memory but achieve greater compression. The valid values for this subparameter are 8–15, inclusive. The default value is *INITPARMS.

ECMLEVEL specifies the extended compression memory level parameter, which determines how much memory should be allocated for other internal data structures like the hash table and the previous table (pointers to previous strings starting with the same 3 characters). The extended memory level affects how much memory the extended compression routines use. Higher memory levels use more virtual memory but achieve greater compression. The valid values for this subparameter are 1–9. inclusive. The default value is *INITPARMS.

EXCLUDE(generic, member-name, (start-range/stop-range), ‘list’)

specifies criteria that identifies the file members that are not to be copied. EXCLUDE allows you to make exceptions to members specified generically or by range in the SELECT option. Refer to the IBM Sterling Connect:Direct Processes Web site at http://www.sterlingcommerce.com/documentation/processes/processhome.html for the syntax and override priority for the SELECT and EXCLUDE parameters appropriate to the remote node.

generic specifies a generic member name. For example, if you specify CD*, all member names beginning with CD are excluded.

member-name specifies an individual member name.

start-range/stop-range specifies first and last names in an alphanumeric range of members. Although member names in a range are treated as generics, they cannot be used with an asterisk (*). A slash (/) separates the first (start-range) and last (stop-range) member names. The two members specified, as well as all members in the range, are excluded.

‘list’ specifies any combination of the subparameters.

FALIAS(*YES|*NO)

specifies whether aliases are copied when their associated member names are copied.

FBUFND(n)

specifies the number of I/O buffers VSAM uses for transmitting data between virtual and auxiliary storage. (A buffer is the size of a control interval in the data component.) Valid values range from 1–510. The default is 2. Increasing this number generally improves the I/O performance on the file but requires more memory. This parameter is valid only when the source side is an z/OS node.

FDBPARMS(dbid, dbsubid)

indicates that the Sterling Connect:Direct for z/OS SQL SERVER is to process the I/O request against the database identified by the subparameters of this keyword and defined by the SQL= parameter. The DBPARMS parameter is used with the optional Sterling Connect:Direct for SQL feature. This parameter is valid only when the source side is a z/OS node. Only DB2 is supported.

To determine the values to code to access a given DB2 table or set of DB2 tables, consult your database administrator.

dbid specifies the 1–4 byte DB2 database ID.

dbsubid specifies the 1–4 byte DB2 database sub-ID.

FDCB(modeldcb, blksize, den, dsorg, keylen, linct, lrecl, optcd, recfm, rkp, trtch)

overrides attributes of the source file. DCB attributes are determined from the operating system unless specified.

modeldcb specifies a model data set control block (DSCB).

blksize specifies the length in bytes of the block. The minimum length is 18 bytes, and the maximum length is 32,760 bytes.

den specifies the magnetic tape mode setting. The following table shows the values for the DEN parameter for 7- and 9-track tapes. When coded together, the DEN and TRTCH values are used to select a tape device for allocation by Sterling Connect:Direct for z/OS.
DEN 7-Track Tape 9-Track Tape
1 556 bpi --
2 800 bpi 800 bpi
3 -- 1600 bpi
4 -- 6250 bpi

dsorg specifies the file organization. Supported file organizations are BDAM, ISAM, PO, PS, and

VSAM.

keylen specifies the length of the keys used in a file. Maximum length in bytes is 255.

linct specifies the blocks or tracks searched to find a free block or available space.

lrecl specifies the record length in bytes.

optcd specifies optional processing associated with this file. This specification only applies to this file and is not automatically applied to the other files involved in the RECEIVE operation.

Valid options are:
  • W performs write validity checks on direct access storage devices.
  • Q performs ASCII-to-EBCDIC conversion for input files and EBCDIC-to-ASCII conversion for output files. Q is the default and only used for AL-labeled tape files.
  • Z performs reduced error recovery for tape files.
recfm specifies the format of the records in the file. You can specify any valid record format, such as:
  • F specifies fixed format.
  • FA specifies fixed format with ASA printer control.
  • FB specifies fixed block format.
  • FBA specifies fixed block format with ANSI carriage control.
  • FM specifies fixed format with machine code control character.
  • U specifies undefined format.
  • V specifies variable format.
  • VB specifies variable block format.
  • VBA specifies variable block format with ASA printer control.
  • VBM specifies variable format with block machine code control character.
  • VS specifies variable spanned format.
  • VBS specifies variable block spanned format.
  • For FDR volumes, you must specify RECFM=U.

rkp specifies the position of the first byte of the record key within each logical record. The beginning byte of a record is addressed as 0.

trtch specifies the magnetic tape mode setting. When coded together, Sterling Connect:Direct for z/OS uses the TRTCH and DEN values to select a tape device for allocation. Valid options are:
  • C specifies data conversion, odd parity, and no translation.
  • E specifies no data conversion, even parity, and no translation.
  • T specifies no data conversion, odd parity, and BCD or EBCDIC translation.
  • ET specifies no data conversion, even parity, and BCD or EBCDIC translation.
  • COMP is a feature for 3480X tape drives only. It enables Improved Data Recording Capability (IDRC), which compresses the data. This subparameter overrides the system-wide IDRC setting for no compression. If you are specifying COMP, you must also include a UNIT= parameter that specifies either 3480X or a systems programmer-defined name equivalent to a 3480X tape drive.
  • NOCOMP overrides the system-wide IDRC setting for compression. NOCOMP applies to 3480X tape drives only.

FDISP(current, normal end, abnormal end)

specifies the status of the remote file and what is to be done with the file after notification of successful transmission.

current specifies the status of the file. Valid values are:
  • SHR specifies that the file can be read simultaneously by another operation. SHR is the default.
  • OLD specifies that the operation is to be given exclusive control of the file.
normal end specifies the disposition of the file following normal operation termination. Valid dispositions are as follows:
  • KEEP specifies that the system is to keep the file after the operation completes.
  • DELETE specifies that the system is to delete the file after the operation completes.
abnormal end specifies the disposition of the file after abnormal operation termination. Valid source file dispositions are:
  • KEEP specifies that the system is to keep the file after the operation terminates abnormally.
  • DELETE specifies the system is to delete the file if the operation terminates abnormally.
For subparameters for other Sterling Connect:Direct platforms, refer to the IBM Sterling Connect:Direct Processes Web site.
Note: Currently, normal end disposition and abnormal end disposition are not applicable for Sterling Connect:Direct for i5/OS.

FIOEXIT(program-name)

specifies the name of the user-written program to be given control for I/O-related requests for the associated data.

FIOPARM(parameter-name)

specifies a parameter, or list of parameters, to be passed to the specified exit. This parameter is valid only when the source side is a z/OS node. The FIOPARM syntax depends on the parameter list that the program specified in FIOEXIT requires.

FLABEL(seqno, labeltype, pswdread, inout, retpd|expdt)

specifies label information for the tape.

seqno specifies the relative file position on the tape.

labeltype is designated as:
  • SL specifies IBM standard labels.
  • AL specifies American National Standard labels.
  • BLP specifies bypass label processing.
  • LTM specifies bypass leading tape marks.
  • NL specifies no labels.

pswdread specifies that a password must be supplied by the operator or user before the file can be accessed.

inout specifies that a BSAM data set opened for INOUT or a BDAM data set opened for UPDAT is to be read only.

retpd specifies the retention period for the data set in days, where nnnn is 1–4 digits.

expdt specifies the expiration date for the data set, where yyddd or yyyyddd is a valid Julian date.

FLINK(vmuserid,pwd,accmode,ccuu)

specifies the disk where the CMS file is located. This parameter allows the user to access the CMS file. This parameter is valid for VM nodes only.

vmuserid specifies the owner ID for the CMS minidisk where the file is located. The valid length ranges from 1–8 characters.

pwd specifies the appropriate password for the CMS minidisk where the file is located. The maximum length is 256 characters. The default password is ALL.

accmode specifies the link access mode.

When used with the FROM parameter, the access modes are W (primary read/write access), M (primary multiple access), R (primary read only), RR (primary and secondary read only access), WR (primary read/write access; alternate read only access), MR (primary multiple access; alternate read only access), and MW (primary multiple access; alternate read/write only access).

When used with the TO parameter, the access modes are W, M, and MW.

ccuu specifies the virtual address of the disk where the CMS file is located. A three-digit number is valid.

FMSVGP(data-set-name)

specifies the remote file mass storage volume group that resides on a mass storage system (MSS) device. This group must be a valid DD (data definition) name. This parameter is valid when the source side is a z/OS node only.

FPDSDIR(*YES|*NO)

specifies whether the user-related information in the directory is sent.

FSQL(sql-statement|DSN=data-set-name)

defines the SQL statement to be processed against the database identified by the DBPARMS parameter or the DSN containing the SQL statements. The SQL parameter is used with the optional Sterling Connect:Direct for z/OS SQL feature. This parameter is valid only when the source side is an Sterling Connect:Direct for z/OS node.

sql-statement defines the actual SQL statement to be processed.

data-set-name specifies the data set containing the SQL statements to be processed.

FTYPE(entry-name)

specifies the entry name of the type defaults file on the remote node that contains the default file attributes. Specify this typekey only when the user requests defaults.

FUNIT(name)

specifies the unit address, device type, or user-assigned group name where the file resides or will reside. For SAM-to-SAM copies where the destination file is new and the UNIT parameter is not coded, the device type from the source file is used.

Specify a unit-count to allow additional units to be allocated if required, or specify P to allocate the same number of units as volumes and then parallel mount the volumes. This parameter is valid only when the source side is a z/OS node.

FVOL(private, volcount, ser)

specifies the volume serial numbers containing the file and optional processing associated with the file. If VOL is not specified, the file must be cataloged.

private specifies allocation of an output file only if the volume is specifically requested and is used for direct access storage devices only. Valid values are *YES and *NO.

volcount specifies the maximum number of volumes required by an output file.

ser identifies by serial number the volumes on which the output file resides or will reside.

FVOLREF(data-set-name)

allows you to retrieve the specified data set from the same volume as the referenced data set. You must catalog it on the system where it is referenced. This parameter is valid only when the source side is a z/OS node.

FVSAMCAT(dsn,vmid,pwd,accmode,cuu)

other than the master catalog.

dsn specifies the filename of the VSAM catalog containing the file to be copied. The maximum length is 44 characters.

vmid specifies the owner ID for the VSAM minidisk where the file is located. The maximum length is eight characters.

pwd specifies the appropriate password for the VSAM minidisk where the file is located. The maximum length is eight characters.

accmode specifies the link access mode. Valid access modes are NULL, W (primary read/write access), M (primary multiple access), and MW (primary multiple access; alternate read/write only access).

cuu specifies the virtual address of the disk where the VSAM file is located. Any three-digit number is valid.

NOTIFY(userid)

specifies the user ID on the local node to receive status messages that are directed to the user’s message queue.

PLEXCLASS(user-defined class)

specifies a user-defined class containing up to eight characters associated with a Sterling Connect:Direct/Server in a Sterling Connect:Direct/Plex environment. This represents a type of server on which you want to run a task, for example TAPE.
Note: This parameter is for use only in Sterling Connect:Direct for z/OS environments.

PNAME(process-name)

identifies the Process in any messages or statistics. The name can be from 1 to 12 characters long. The first character must be alphabetic. The default name is CDRCV.
Note: Only Sterling Connect:Direct for i5/OS and Sterling Connect:Direct for UNIX support Process names with more than 8 characters.

PNODEID(id, pswd, newpswd)

specifies security user IDs and passwords at the local i5/OS node. Use this parameter only to validate security with a different ID than the one you used to sign on to the system.

id specifies the security ID passed to the security system at the remote node (1–10 alphanumeric characters).

pswd specifies the current security password for the specified ID. The security system can use this parameter at the remote node to validate the current security password (1–10 alphanumeric characters). This is optional unless the user has security set to require a password.

newpswd specifies the new security password. Sterling Connect:Direct for i5/OS does not support this parameter.

REPLACE(*YES|*NO)

specifies that the remote file or PDS replaces members of the same name at the local file.

RMTWORK(*YES|*NO)

specifies whether a remote Process can run on the session after Sterling Connect:Direct for i5/OS has completed its Process on the session.

*YES allows a remote Process to run on the session after Sterling Connect:Direct for i5/OS completes its Process.

*NO terminates the session after Sterling Connect:Direct for i5/OS executes the command function.

SACCT(snode-accounting-data)

specifies the accounting data for the remote node. The maximum length of the accounting data is 256 characters. If special characters are part of the accounting data, you must enclose the string in single quotation marks.

SECOPTIONS(* *)

specifies Encryption and Digital Signature values.

Encryption specifies if data encryption is to be performed and what algorithm to use.

Digital Signature specifies if a digital signature is created while a file is being transmitted.
Note: The SECOPTIONS parameter is valid only if the Sterling Connect:Direct Secure Plus is installed. For information about these parameters, refer to the IBM Sterling Connect:Direct Secure Plus for i5/OS Implementation Guide.

SELECT(member, new-name, R/NR,‘list’)

specifies selection criteria by which file members are to be copied. Refer to the IBM Sterling Connect:Direct Processes Web site for the syntax and override priority for the SELECT and EXCLUDE parameters appropriate to the remote node.

Use this parameter when you specify TYPE(FILE) in the TOSYSOPTS parameter.

The SELECT parameter consists of three positional subparameters separated by commas.

member specifies the members to be copied. Member selections are:
  • * represents a global generic. A global generic indicates that all members of the file are to be included.
  • generic specifies a generic member name. For example, if you specify CD*, all member names beginning with CD are selected for copying.
  • member-name specifies an individual member name.
  • start-range/stop-range specifies first and last names in an alphanumeric range of members. Although member names in a range are treated as generics, they cannot be used with an asterisk (*). A slash (/) separates the first (start-range) and last (stop-range) member names. The two members specified, as well as all members in the range, are copied.

new-name specifies a new name for a member. You cannot use the new-name subparameter if a generic or range is used to select the members to be copied, or if you specify a list of member names.

R/NR specifies whether a copied member replaces an existing member of the same name in the local file. When used with a generic or a range, this subparameter applies to all members selected.

Note: When using a generic and specifying NR or R, the second positional subparameter (new-name) must be null, for example, member-name,,NR.

R specifies that a member replaces an existing member of the same name in the local file. When used with the new-name subparameter, R applies to the specified new-name and not the original member name.

NR specifies that a member does not replace an existing member of the same name in the local file. NR overrides the REPLACE parameter.

‘list’ specifies any combination of the subparameters. You can specify a list of individual member names or generic member names separated by spaces. However, you cannot use the new-name and replace-member subparameters when specifying a list.
Note: Member names longer than eight characters are truncated to eight characters when the remote node is not an i5/OS node.

SNODEID(id, pswd, newpswd)

specifies security user IDs and passwords at the remote node. If nothing is specified for this parameter, the user profile of the user who submits the command is sent to the remote node with a blank password.

id specifies the security ID passed to the security system on the remote node (1–64 alphanumeric characters).

pswd specifies the current security password. The security system can use this parameter on the SNODE to validate the current security password (1–64 alphanumeric characters). This is optional unless the user has set security to require a password.

newpswd specifies the new security password. Sterling Connect:Direct for i5/OS does not currently support this parameter if the remote node is an i5/OS node.
Note: Parameter values are case sensitive.

TDISP(current)

specifies the status of the file on the local i5/OS node.

current specifies the status of the file before the operation executes. Valid values for this subparameter are:
  • NEW specifies that the operation creates the destination file or member. If you are creating a member, the file can already exist but the member must not already exist. If you are creating a file (SAVF), the file must not already exist.
  • OLD specifies that the destination file or member already exists. The operation has exclusive control of the member. If the file or member does not exist, the receive operation fails.
  • MOD specifies that the operation modifies the file or member by adding data to the end of the member or, if none exists, allocates a new member. The file is also created if it does not exist.
  • RPL indicates that the destination file or member is replaced. The file is created if it does not exist.
  • SHR indicates that another operation can read the file simultaneously. The file or member is created if it does not exist on i5/OS.
    Note: Currently, normal end disposition and abnormal end disposition are not applicable when sending to Sterling Connect:Direct for i5/OS.

TRACEOPT

Trace Instructions

(L, S, F, C, X, K, D, H, V, W, P,|*NONE|*ALL|*EXT| *COMMON|*INITPARMS|*CURRENT

specifies the trace bits that define functions to be traced by Sterling Connect:Direct for i5/OS. The following are valid options:
  • L enables the main line logic trace for all components.
  • S enables the Process step logic trace.
  • F enables the file handler trace.
  • C enables the communications logic trace.
  • X enables the XDR trace.
  • K enables the KQV logic trace.
  • D enables the all-purpose data dump.
  • H enables the FMH dump.
  • V enables the XDR dump.
  • W enables the communications dump.
  • P enables the CIPC dump.
  • *NONE turns off all traces.
  • *ALL enables all product traces.(L, S, F, C, X, K, D, H, V, W and P)
  • *EXT enables all product traces plus two system traces (TRCICF and TRCJOB).
  • *COMMON enables the communications traces. (L, S, F, C, and H)
  • *INITPARMS indicates the traces specified in the initialization parameters.
  • *CURRENT selects the trace bits that the session manager is currently using.

Command Trace Options

L,S,F,C,X,K,D,H,V,P|*ALL|*EXT|*COMMON| *NONE)

specifies the trace bits that define functions to be traced for this command but not for the Process it runs. The following are valid options:
  • L enables the main line logic trace for all components.
  • S enables the Process step logic trace.
  • F enables the file handler trace.
  • C enables the common logic trace.
  • X enables the XDR trace.
  • K enables the KQV logic trace.
  • D enables the all-purpose data dump.
  • H enables the FMH dump.
  • V enables the XDR dump.
  • P enables the CIPC dump.
  • *ALL enables all product traces.(L, S, F, C, X, K, D, H, V, and P)
  • *EXT enables all product traces plus two other traces. (TRCICF and TRCJOB)
  • *COMMON enables the most commonly used traces. (L, S, F, C, and H)
  • *NONE turns off all traces.