CDUnix UserGuide
CDUnix UserGuide
User Guide
Version 4.1
User Guide
Version 4.1
Note
Before using this information and the product it supports, read the information in Notices on page 85.
This edition applies to version 4.1 of IBM Sterling Connect:Direct and to all subsequent releases and modifications
until otherwise indicated in new editions.
Copyright IBM Corporation 1999, 2014.
US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
Chapter 1. Controlling and Monitoring
Processes . . . . . . . . . . . . . . 1
Overview of the Command Line Interface . . .
Starting the CLI . . . . . . . . . . .
Stopping the CLI . . . . . . . . . . .
CLI Commands . . . . . . . . . . .
CLI Job Control . . . . . . . . . . .
CLI History Commands . . . . . . . .
Overview of Sterling Connect:Direct Commands
Submitting a Process. . . . . . . . . .
Changing Process Parameters . . . . . .
Deleting a Process from the TCQ . . . . .
Removing a Process from the Execution Queue
Stopping Sterling Connect:Direct . . . . .
Viewing a Process in the TCQ . . . . . .
Monitoring Process Status in the TCQ . . .
Determining the Outcome of a Process . . .
Generating a Detailed Output Report for a
Process . . . . . . . . . . . . . .
Generating a Summary Report for a Process .
Running System Diagnostics. . . . . . .
. 1
. 1
. 1
. 1
. 3
. 4
. 4
. 6
. 13
. 15
17
. 18
. 19
. 22
. 26
. 34
. 34
. 35
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
39
39
40
41
42
43
43
. 45
. 45
. 46
. 46
47
.
.
.
.
.
.
47
48
48
48
49
49
. 50
. 50
51
. 53
53
53
54
54
54
55
55
56
57
58
61
61
61
63
64
65
66
71
72
77
77
78
79
79
80
81
81
81
82
84
84
84
Notices . . . . . . . . . . . . . . 85
Index . . . . . . . . . . . . . . . 89
. 53
iii
iv
CLI Commands
Refer to the following table for a description of the command options and sample
command entries:
Option
Description
Value
-P
text string
Up to 32 characters.
Sample Command
Entry
$ direct
-PNewPrompt
$ direct -PTest CD
on Medea
none
$ direct -s
-t n
1|2|4
$ direct -t 4
Option
Description
Value
Sample Command
Entry
-e nn
0 | 4 | 8 | 16
$ direct -e 16
8Indicates error.
16Indicates
catastrophic error.
Sterling Connect:Direct
host name
$ direct -n hostname
-p nnnnn
-x
none
$ direct -x
-r
none
$direct -r | grep
_CDPNUM_
-h
none
$ direct -h
-z
none
$ direct -z
enables you to edit the text of saved Processes, issue UNIX commands, and resolve
Process errors without exiting and reentering the CLI. Use the following
commands to switch the CLI Process:
v Press the suspend character (Control-Z) to stop or suspend the CLI Process.
v Issue the fg command to move the CLI Process to the foreground.
Note: If you experience problems with job control, contact your system
administrator for suggestions on additional UNIX commands to use.
Description
!!
!#n
!n
!<string>
!?
Command
Abbreviation Description
submit
sub
change process
cha pro
delete process
del pro
flush process
flush pro
stop
stop
select process
sel pro
select statistics
sel stat
view process
view pro
Abbreviation
detail
det
quit
recids
rec
release
rel
pname
pnam, pna
pnumber
pnum
sunday
sun
monday
mon
tuesday
tue
wednesday
wed
thursday
thu
friday
fri
saturday
sat
today
tod
tomorrow
tom
v When typing commands, type the entire command name or type the first three
characters or abbreviate specific parameters. Refer to Abbreviations for
Common Sterling Connect:Direct Commands on page 5for a list of
abbreviations.
v Do not abbreviate Process statements and parameters.
v File names, group names, user IDs, and passwords are variable length strings
and can be any length.
v A Sterling Connect:Direct node name is 116 characters long. The name of a
record in the netmap describing a remote node is typically the remote Sterling
Connect:Direct node name, but can be any string 1256 characters long. You can
also specify a remote node name as an IP address or hostname and a port
number or port name.
The generic Process name specified in the previous sample shows a specification
that matches all Processes beginning with the letter A, followed by any single
character in position two with the string PROD5 in positions three through seven.
The asterisk takes the place of zero or more characters beginning in position eight.
Submitting a Process
The submit command makes Processes available for execution and enables the
software to interpret the Process statements contained in the specified files.
Parameters specified in the submit command override the same parameters
specified on the Process statement. There are no required parameters. However, if
you do not specify a file name for the file parameter, the text of the Sterling
Connect:Direct Process must follow the submit command. Following are the
parameters for the submit command:
Parameter
Description
file
The name of the Process file. The file name can file name including the path name
include a path name indicating the location of
the Process.
This parameter must be the first parameter.
Values
Parameter
Description
Values
class
1|n
crc
hold
maxdelay
unlimited | hh:mm:ss | 0
unlimitedWaits until the Process completes
execution.
hh:mm:ssWaits for an interval no longer than
the specified hours, minutes, and seconds.
0Waits until the Process completes execution. If
you specify maxdelay=0, you get the same results
as when you specify maxdelay=unlimited.
Parameter
Description
Values
notify
username@hostname or user@localhost
The user e-mail to receive Process completion
messages. This parameter uses the rmail utility
available in the UNIX System V mail facility to
deliver the completion messages.
Note: Sterling Connect:Direct does not validate
the e-mail address or user ID supplied to the
notify parameter. Invalid e-mail addresses and
failed E-mail attempts are handled according
to the local mail facilities configuration.
pacct
pnodeid
id [, pswd]
idSpecifies a user ID on the PNODE.
pswdSpecifies a user password on the
PNODE.If you specify pnodeid, you must also
specify id. Identify the ID first and the pswd last.
prty
retain
yes | no | initial
Parameter
Description
Values
snode
Parameter
Description
Values
snodeid
id [,pswd [,newpswd]]
10
Parameter
Description
Values
startt
&symbolic
name 1
&symbolic
name 2
&symbolic
name n
variable string 1
variable string 2
variable string n
The value for the symbolic parameter must be
in double quotation marks if it is a keyword or The symbolic name cannot exceed 32 characters.
contains special characters. If you want to
reserve the double quotation marks when the
symbolic name is resolved in the Process,
enclose the double-quoted string in single
quotes, for example:
&filename = filename with spaces'
The symbolic name itself must not be a subset
of any other symbolic name. (You cannot have,
for example, a symbolic name called ¶m
and another symbolic name called ¶meter
in the same Process.)
11
Parameter
Description
Values
tracel
level = 0 |1 | 2 | 4
Specifies the level of trace to perform for a
Process. Tracing by Process can be turned on in
the submit command or as part of the Process snode | pnode
definition.
file=name
If you identify the snode or pnode
immediately after the trace level definition, the levelSpecifies the level of detail displayed in the
trace output. The default is 4.
trace level is turned on for all Processes
submitted to and from the node identified.
0Terminates the trace.1The basic level that
provides function entry and function
exit.2includes level 1 plus function
arguments.4Enables a full trace. Basic
diagnostic information, such as values of internal
data structures at key points in the execution
flow, are displayed.
snodeSpecifies to trace only the SNODE SMGR.
pnodeSpecifies to trace only the PNODE SMGR.
fileSpecifies the name of a file where the trace
output is directed. If you do not specify a file
name, the file is created in the Sterling
Connect:Direct working directory with the file
name CMGR.TRC. The length of the name value
is unlimited.
Because retain=yes is specified in this sample, the Process is retained in the TCQ
after execution. The Process starts next Monday at 00:00:00 and runs every Monday
thereafter. Process accounting data is specified for the PNODE.
Because startt is specified, the Process executes on the first day of January 2008 at
11:45 a.m.
12
Because tracel is specified and the pnode parameter is included, an SMGR and
COMM full trace is performed on the Process. Trace information is written to the
default file SMGR.TRC.
Description
Value
pname
pnumber
13
Parameter
Description
Value
snode
The optional parameters for the change process command are the following:
14
Parameter
Description
class
Value
Parameter
Description
Value
hold
newsnode
prty
release
none
tracel
level = 0 | 1 | 2 | 4
The following command changes the remote node name for the Process named
cdproc to a new remote node, paris:
change process pname=cdproc newsnode=paris;
15
You select the Process to delete by Process name, Process number, secondary node
name, submitter, or any combination of the search criteria parameters. Specify at
least one of the following search criteria parameters:
Parameter
Description
Value
pname
pnumber
snode
submitter
number | (list)
numberSpecifies the Process number.
listSpecifies a list of Process numbers.
Enclose the list in parentheses, and separate
each value with a comma (,).
remote node specification | generic | (list)
remote node specificationIdentifies a
specific remote node name.
genericSpecifies a nonspecific value for the
remote node name. This generic value,
containing pattern-matching characters,
evaluates to a list of zero or more remote
node names.
listSpecifies a list of remote node
specifications. Enclose the list in parentheses,
and separate each value with a comma.
16
Description
Value
pname
pnumber
snode
17
Parameter
Description
Value
submitter
Description
Value
force
yes | no
hold
The following command flushes all executing Processes named Rome from the
Execution queue:
flush process pname=rome force=yes;
The following command flushes all executing Processes on node alma submitted
by user ID jones:
flush process submitter=(alma, jones);
18
You can specify the force, immediate, quiesce, or step parameters with the stop
command.
Note: The force parameter is required when running Sterling Connect:Direct with
the LU6.2 feature on any supported platform other than AIX.
Following are the parameters for the stop command:
Parameter
Description
force
immediate
quiesce
step
19
Parameter
Description
Value
pname
pnumber
queue
snode
20
Parameter
Description
Value
status
EX | HC | HE | HI | HO | HR | HS | PE
| WC | WR | WS | (list)
EX (Execution)Specifies to select Processes
from the Execution queue.
HC (Held for Call)Specifies to select
Processes submitted with hold=call.
HE (Held due to Error)Specifies to select
Processes held due to a connection error.
HI (Held Initially)Specifies to select
Processes submitted with hold=yes.
HO (Held by Operator)Specifies to select
Processes held by a change process
command issued with hold=yes.
HR (Held Retain)Specifies to select
Processes submitted with retain=yes or
retain=initial.
HS (Held Due to Execution
Suspension)Specifies to select Processes
suspended by a flush process command
issued with hold=yes.
PE (Pending Execution)Specifies to select
Processes submitted with a maxdelay
parameter and assigned PE status by the
Process Manager just before a Session
Manager is created to execute the Process.
After the Session Manager initializes, the
Process is placed on the Execution queue and
the status is changed to EX.
WC (Waiting for Connection)Specifies to
select Processes that are ready for execution,
but that all available connections to the
remote node are in use.
WR (Waiting for Restart)Specifies to select
Processes that are waiting for restart after
session failure.
WS (Waiting for Start Time)Specifies to
select Processes waiting for a start time.
These Processes are on the Timer Queue.
listSpecifies a list of status values. Enclose
the list in parentheses, and separate each
value with a comma.
21
Parameter
Description
Value
submitter
Description
Value
pname
pnumber
22
Parameter
Description
Value
queue
snode
23
Parameter
Description
Value
status
EX | HC | HE | HI | HO | HR | HS | PE
| WC | WR | WS | (list)
EX (Execution)Specifies to select Processes
from the Execution queue.
HC (Held for Call)Specifies to select
Processes submitted with hold=call.
HE (Held due to Error)Specifies to select
Processes held due to a connection error.
HI (Held Initially)Specifies to select
Processes submitted with hold=yes.
HO (Held by Operator)Specifies to select
Processes held by a change process
command issued with hold=yes.
HR (Held Retain)Specifies to select
Processes submitted with retain=yes or
retain=initial.
HS (Held Due to Execution
Suspension)Specifies to select Processes
suspended by a flush process command
issued with hold=yes.
PE (Pending Execution)Specifies to select
Processes submitted with a maxdelay
parameter and assigned PE status by the
Process Manager just before a Session
Manager is created to execute the Process.
After the Session Manager initializes, the
Process is placed on the Execution queue and
the status is changed to EX.
WC (Waiting for Connection)Specifies to
select Processes that are ready for execution,
but that all available connections to the
remote node are in use.
WR (Waiting for Restart)Specifies to select
Processes that are waiting for restart after
session failure.
WS (Waiting for Start Time)Specifies to
select Processes waiting for a start time.
These Processes are on the Timer Queue.
listSpecifies a list of status values. Enclose
the list in parentheses, and separate each
value with a comma.
24
Parameter
Description
Value
submitter
detail
yes | no
yesGenerates a detailed report.
noGenerates a short report. This is the
default.
The following command displays a short report for the specified Process number:
select process pnumber=9 detail=no;
The following command displays a detailed report for the specified Process
number:
select process pnumber=9 detail=yes;
=> 19:52:35
=> 05/22/1996
Queue
=> EXEC
Process Status => EX
Message Text
=>
-----------------------------------------------------------------------------------
25
Description
Value
ccode
operator, nn
operatorSpecifies the completion code operator.
Following are the valid completion code
operators:
eq or = or == (equal) This is the default.
ge or >= or => (greater than or equal)
gt or > (greater than)
le or <= or =< (less than or equal)
lt or < (less than)
ne or != (not equal)
The return code is the exit status of the UNIX
command or the Sterling Connect:Direct Process
or command.
nnSpecifies the return code value associated
with Step Termination.
destfile
dest=/path/file name
For example:
sel stat dest=/sci/payroll/june.payroll;
This parameter can be used in combination with
the srcfile parameter to select statistics based on
a source file name and a destination file name,
for example:
sel stat srcf=/sci/accounting/june.payroll
dest=/sci/payroll/june.payroll
26
Parameter
Description
Value
pname
pnumber
reccat
27
Parameter
Description
Value
recids
record id | (list)
record idSelects statistics file records for the
specified record ID.
listSpecifies a list of Process names. Enclose the
list in parentheses, and separate each value with
a comma.
Following are the valid record ID values:
APSMLicense Management failure generated.
CHFAChange Functional Authority command
issued.
CHGPThe change process command issued.
CHPXChange Proxy command issued.
CRHTCopyright statement.
COACListen connection enabled for either API
or a remote node.
CSPASterling Connect:Direct Secure Plus
failure generated.
CSPEStrong Password Encryption event.
CSTPChild Process stopped.
CTIMCommand Manager inactivity timer
popped.
CTRCCopy termination record.
CTRMChild Process terminated.
CUKNChild Process unknown status.
CXITChild Process exited.
DELPThe delete Process command issued.
DLFADelete Functional Authority command
issued.
DLPXDelete Proxy command issued.
FLSPThe flush Process command issued.
FMRVError occurred in function management.
information receive operation.
FMSDError occurred in function management.
information send operation.
GPRCError occurred while getting Process.
28
Parameter
Description
Value
IFEDThe if statement ended.
LIEXLicense expired.
LIOKListen okay.
LSEDLocal Process Step Ended.
LSSTThe record ID of a step on the local node.
LWEXLicense expires within 14 days.
NAUHNode Authorization check issued.
NINFSterling Connect:Direct information
generated at startup.
NMOPNetwork map file opened.
NMPRThe network map is updated through
Sterling Connect:Direct Browser User Interface,
Sterling Control Center Console, or KQV
Interface.
NUICInitialization complete.
NUISInitialization started.
NUTCTermination completed.
NUTSTermination started.
PERRProcess error.
PFLSProcess flushed.
PPERPipe Error.
PREDProcess ended.
PRINProcess interrupted.
PSAVProcess saved.
PSEDProcess Step Ended.
PSTRProcess started.
QCEXA Process moved from another queue to
the EXEC queue.
QCWAA Process moved from another queue to
the WAIT queue.
QCTIA Process moved from another queue to
the TIMER queue.
QCHOA Process moved from another queue to
the HOLD queue.
QERRTest Mode error event.
RFIPRefresh initparms command issued.
29
Parameter
Description
Value
RJEDThe run job ended.
RNCFRemote node connection failed.
RSEDRemote Process Step Ended.
RSSTThe record ID of a step on the remote
node.
RTEDThe run task ended.
RTRSRun Task Restarted.
RTSYRun task restarted. Re-syncing with run
task that was executing.
SBEDThe submit ended.
SCNTMax session count.
SCPAStep end status.
SELMSelect message command issued.
SELPThe select Process command issued.
SELSThe select statistics command issued.
SENDSession ended.
SERRSystem error.
SFSZSize of the file submitted.
SGONUser signed on using KQV Interface or
Command Line Interface.
SHUDShutdown occurred.
SIGCSignal caught.
SLFASelect func. Authority command issued.
SLIPSelect initparms command issued.
SLNMSelect netmap command issued.
SLPXSelect proxy command issued.
SLSGSelect signature command issued.
SPACS+ cmd add key certificate.
SPATS+ cmd add trusted root certificate.
SPCLS+ cmd add alias node.
SPCNS+ cmd add node.
SPDNS+ cmd delete node.
30
Parameter
Description
Value
SPGCS+ cmd select ciphersuites.
SPRKS+ cmd rekey parmfile.
SPSCS+ cmd select key certificate.
SPSNS+ cmd select nodes.
SPSTS+ cmd select trusted root certificates.
SPSYS+ cmd sync netmap.
SPUCS+ cmd change key certificate.
SPUNS+ cmd change node.
SPUTS+ cmd change trusted root certificate.
SPVPS+ cmd validate parmfile.
SSTRSession start.
STOPThe stop command issued.
SUBPThe submit command issued.
SUBVValidate Process command issued.
TRACThe trace command issued.
TZDIThe time zone of the local node
represented as the difference in seconds between
the time at the local node and the Coordinated
Universal Time.
UNKNUnknown command issued.
USECSecurity check for user ID failed.
USMGSterling Connect:Direct is shutting
down.
VEWPView Process command issued.
Logged messages may not have an explicitly
defined record id. These messages default the
record id to the first four characters of the
message. Some examples are listed below.
XCMMCommand manager (CMGR) messages.
XCPRCopy receive.
XCPSCopy send.
XIPTCommunication errors.
XLKLLow-level TCQ record locking errors.
XMSGMessage sent to user exit.
31
Parameter
Description
Value
XPACProcess parsing message.
XPAEParsing error occurred when a Process or
command was submitted.
XPAMParsing error occurred when a Process
or command was submitted.
XPMCProcess manager (PMGR) connection
error messages.
XPMLPMGR statistics log error messages.
XPMPPMGR error messages when checking
permission on the Sterling Connect:DirectSelect
programs.
XPMRPMGR RPC and miscellaneous error
messages.
XPMTPMGR termination error messages.
XRPMRun task or run job error messages.
XRRFRelative record file access error messages.
File structure is use for TCQ.
XSMGSession manager (SMGR) error
messages.
XSQFFile access error messages.
XSTAUser exit program started.
XTQGA single TCQ error message group.
XTQZA single TCQ error message group.
snode
32
Parameter
Description
Value
srcfile
srcf=/path/file name
For example:
sel stat srcf=/sci/accounting/june.payroll;
This parameter can be used in combination with
the destfile parameter to select statistics based on
a source file name and a destination file name,
for example:
sel stat srcf=/sci/accounting/june.payroll
dest=/sci/payroll/june.payroll
startt
stopt
33
Parameter
Description
Value
submitter
detail
yes | no
Specifies the type of
report (short or detailed)
yesGenerates a detailed report.
that Sterling
Connect:Direct generates
for the selected Processes. noGenerates a short report. This is the default.
34
To avoid lengthy search times when issuing the select statistics command, archive
or delete statistics files regularly. Also, use the startt and stopt parameters to
bracket the desired stats as closely as possible. Execution of a Process generates
multiple statistics records. Sterling Connect:Direct closes the current statistics file
and creates a new statistics file every midnight. It can also close the current file
before midnight if the file size exceeds the value set for the file.size initialization
parameter. The default file size is 1 megabyte.
Statistics files are in the d_dir/work/cd_node directory. Names of the statistics file are
in the format Syyyymmdd.ext, where yyyy indicates year, mm indicates month,
and dd indicates day. The extension (ext) begins as 001. The extension is
incremented by one each time a new statistics file is created in a single day.
Description
Value
cmgr
level=0 |1 | 2 | 4
file=name
levelSpecifies the level of detail displayed in
the trace output. The default is 4.
0Terminates the trace.1Is the basic level
that provides function entry and function
exit.2Includes level 1 plus function
arguments.4Enables a full trace. Basic
diagnostic information, such as values of
internal data structures at key points in the
execution flow, are displayed.
fileSpecifies the name of a file where the
trace output is directed. If you do not specify a
file name, the file is created in the Sterling
Connect:Direct working directory with the file
name CMGR.TRC. The length of the name
value is unlimited.
35
Parameter
Description
Value
comm
level=0 |1 | 2 | 4
file=name
levelSpecifies the level of detail displayed in
the trace output. The default is 4.
0Terminates the trace.1Is the basic level
that provides function entry and function
exit.2Includes level 1 plus function
arguments.4Enables a full trace that
provides basic diagnostic information, such as
values of internal data structures at key points
in the execution flow.
fileSpecifies the name of a file where the
trace output is directed. If you do not specify a
file name, the file is created in the Sterling
Connect:Direct working directory with the file
name COMM.TRC. The length of the name
value is unlimited. The default file name is
COMM.TRC.
pmgr
level=0 |1 | 2 | 4
file=name
levelSpecifies the level of detail displayed in
the trace output. The default is 4.
0Terminates the trace.1Is the basic level
that provides function entry and function
exit.2Includes level 1 plus function
arguments.4Enables a full trace that
provides basic diagnostic information, such as
values of internal data structures at key points
in the execution flow.
fileSpecifies the name of a file where the
trace output is directed. If you do not specify a
file name, the file is created in the Sterling
Connect:Direct working directory with the file
name PMGR.TRC. The length of the name
value is unlimited.
36
Parameter
Description
smgr
Value
The following sample trace command performs a level 2 trace on the Session
Manager for the node called ath3500ry and writes the output to the file Smgp.trc:
trace smgr pnode tnode=ath3500ry level=2 file=Smgp.trc;
37
498
05/18 15:13:0806
498
498
05/18 15:13:0916
05/18 15:13:0926
498
498
498
05/18 15:13:1116
05/18 15:13:1136
05/18 15:13:1155
-> ndm_error_create
<- ndm_error_create: ok
->Parser: SELPRO
->bldexp
<-bldexp: Null argument value,
don't add.
->bldexp
-> ndm_crit_comp
->compile
<-compile
<- ndm_crit_comp: Handle
<-bldexp: ok
.
.
.
===================================================================================
38
Definition
change process
delete process
flush process
select process
view process
Queue
Comments
None of the
scheduling
parameters specified
Wait
retain=yes
Hold
retain=no
Wait (if no other The Process remains in the Wait queue until
parameters are
Sterling Connect:Direct establishes a session with
specified)
the remote node. The default is no.
39
Scheduling
Parameter
Queue
Comments
retain=initial
Hold
retain=yes and
hold=no or hold=call
Hold
hold=yes
Hold
hold=no
hold=call
Hold
startt
Timer
Each Process in the TCQ has an associated status value. Each status value has a
unique meaning that is affected by the logical queue in which the Process is
placed. Status values for each queue are shown in the tables in the following
sections. You can use the select process command to examine that status of
Processes in the TCQ. For example, the following command displays all Processes
in the TCQ with execution status:
select process status=EX;
40
41
Comment
PE
EX
42
Status
Comment
WC
WR
WA
WS
Comment
WR
WS
HR
WC
43
Processes are placed in the Hold queue by a submit command with retain=initial,
retain=yes, or hold=yes parameters specified. Processes submitted with hold=call
also are placed in the Hold queue. Processes are moved from the Timer queue to
the Hold queue by a change process command with hold=yes specified.
Additionally, Processes are moved from the Execution queue to the Hold queue by
a flush process command with hold=yes specified.
Processes are moved from the Hold queue to the Execution queue by a change
process command with the release parameter specified.
The following table shows the status values for the Hold queue:
44
Status
Comment
HC
HI
HE
HO
HR
HS
Each byte stores the character value for the target character set. The source
character set is used as an index into the table. For example, an ASCII blank (Hex
20) would locate the byte at offset Hex 20 in the translation table. If the byte at
location Hex 20 contains Hex code 40, that would translate to an EBCDIC code
indicating a blank character.
45
The parameters for the ndmxlt command are listed in the following table:
Parameter
Description
Values
-ssourcefile
-ooutputfile
-rradix
x|d|o
xHexadecimal. This is the
default.
dDecimal
oOctal
The default is x.
-ffiller
-m
Procedure
1. Make a copy of the sample translation table located at cd_dir/ndm/src/
def_send.sxlt.
2. Open the new translation table with a text editor.
46
3. Add the following lines to the bottom of the table. It should look like the table
in Creating a Translation Table on page 45when you have added this
information.
#
# Change the lowercase characters to uppercase.
offset=61
C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 D7
D8 D9 E2 E3 E4 E5 E6 E7 E8 E9
6. To use this translation table, add the following sysopts parameter to the copy
statement:
copy from file=filename
to
file=filename
sysopts=":xlate.tbl=pathname/UpperCaseEBC.xlt:"
Procedure
1. Create a file called FourLinesUpperCase.sxlt and add the following lines to the
file:
#
# Change the lowercase characters to uppercase.
offset=61
C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 D7
D8 D9 E2 E3 E4 E5 E6 E7 E8 E9
4. To use this translation table, add the following sysopts parameter to the copy
statement:
copy from file=filename
to
file=filename
sysopts=":xlate.tbl=pathname/FourLineUpperCase.xlt:"
47
To specify a customized table for data translation, include the following sysopts
subparameter in the copy statement, where pathname/filename identifies the
translation table:
copy from file=filename
to
file=filename
sysopts=":xlate.tbl=pathname/filename:"
Refer to the UNIX section of the IBM Sterling Connect:Direct Processes Web site
at http://www.sterlingcommerce.com/documentation/processes/
processhome.html for additional details concerning translation table specification
with a copy statement.
Description
XXLT001I
Invalid directive
XXLT002I
XXLT003I
XXLT004I
XXLT005I
XXLT006I
XXLT007I
XXLT008I
48
Description
Values
long.text
A text string
mod.name
short.text
Summary message, up to
72 characters
Following are the parameters for the ndmmsg command. If you do not specify an l
or s parameter, both short and long text are displayed.
Parameter
Description
-f
-l
-s
49
50
Description
Values
-m
compress | decompress
The default is compress.
-i
-o
-z
-x
51
Parameter
Description
Values
-p
text | binary | VB
v text
Strips newline characters from each
record
Supports -s and -a parameters
Uses data attributes of
blocksize=23040, recfm=vb,
lrecl=23036, dsorg=ps
v binary
Uses data attributes of
blocksize=23040, recfm=u, lrecl=0,
dsorg=ps
Does not support -s and -a parameters
v VB
Does not support -x, -p, -s, and -a
parameters
Uses data attributes of
blocksize=23040, recfm=vb,
lrecl=23036, dsorg=ps
When you use -m decompress, the
datatype values result in the following:
v text
Inserts newline characters into each
record
Supports the -s parameter
v binary
Does not support the -s parameter
v VB
Does not support -x, -p, and -s
parameters
-b
-s
nnnnn
y|n
yyes
nno
The default is y.
52
Parameter
Description
Values
-a
y|n
yyes
nno
The default is y.
Specify n if the data is
copied to an i5OS or
mainframe node.
-h
Use this option to display online help for No values are available for
the utility.
this parameter.
compress
text
source.file
compressed.file
/home/cd/ndm/xlate/def_send.xlt
y
compress
text
zzz.txt
zzz.sac
EBCDIC-US,ASCII
53
cdsacomp -m
-d
-i
-o
-x
decompress
text
compressed.file
dest.file
/home/cd/ndm/xlate/def_recv.xlt
54
Description
No arguments (default)
-h
-t
-f filename.cfg
Configuration Reports
You can generate a report of your system information and Sterling Connect:Direct
configuration information using the Configuration Reporting Utility (cdcustrpt).
Configuration reports can be generated for the following Sterling Connect:Direct
components:
v Base installation of Sterling Connect:Direct
Chapter 3. Sterling Connect:Direct Utilities
55
Procedure
1. Type the following command at a UNIX prompt:
% cdcustrpt
2. Type the full path where Sterling Connect:Direct is installed and press Enter.
3. Type the full path and name for the report that will be generated and press
Enter.
The report is generated in the location you specified, and any error messages
are displayed as shown in the following example:
% cdcustrpt
Enter full path of Connect:Direct destination directory:[/sci/users/jbrown1/cd40]:
Enter full path and name for this support report file:[/sci/users/jbrown1/cd40/etc/
cd.support.rpt]:
ls: /sci/users/jbrown1/cd40/ndm/SACL: Permission denied
cdcustrpt ended
In this example, the user does not have root access, so the Strong Access
Control File (sysacl.cfg) can not be accessed. The following example shows an
excerpt from a sample report:
56
###########################################################################
#######
Connect:Direct for UNIX 4.0.00 configuration report
#######
###########################################################################
Connect:Direct for UNIX Version 4000, Build 00, IBM/RS6000 AIX, Fix date:
01OCT2007
Install directory: /sci/users/jbrown1/cd40
Local Node name: jb_aix40
Report for: jbrown1
=========================================================
=====
Begin: Environment and system information
=====
=========================================================
System: AIX skyglass 3 5 00CE208E4C00
Disk usage:
Filesystem
512-blocks
Free %Used
/dev/hd4
262144
64216
76%
2479
/dev/hd2
8126464
2708688
67%
37802
4% /usr
/dev/hd9var
262144
18448
93%
613
2% /var
/dev/hd3
786432
363600
54%
424
1% /tmp
/dev/fwdump
524288
507752
4%
17
/dev/hd1
262144
216520
18%
167
524288
52168
91%
3688
6% /opt
121634816
13629040
89%
264984
15% /sci
/proc
/dev/hd10opt
/dev/fslv00
4% /
1% /var/adm/ras/platform
1% /localhome
-
70%
/proc
-1% /home/nis01
Memory statistics:
System Configuration: lcpu=4 mem=3824MB
kthr
memory
page
faults
cpu
----- ----------- ------------------------ ------------ ----------r b
avm
fre re pi po fr
sr cy in
sy cs us sy id wa
1 1 400072 232777
0
0
0
0
0
0
4 1805 197 0 1 99 0
57
58
Log.MaxVersions="5"
[connection.info]
# Connection information for Connect:Directs API port. (Used when forwarding files
to the back office.)
Comm.Info="spyglass;10102"
Userid="jbrown1"
Passwd="******** "# this is a test
#ClientInfo="/sci/users/jbrown1/swift31/ndm/SwiftNet/Version3/program/<Encrypted
userid/password file generated by the LCU>"
59
60
C++ Compiler
AIX
Sun Solaris
SPARC/x86 C++5.7
HP
HP-Itanium
Linux
Use the commands defined in the following table to compile a custom C++
program using the C++ API calls:
Platform C++ Compile Command
AIX
64-bit
32-bit
Sun
32-bit
61
HP
32-bit
64-bit
HP-Itanium
32-bit
64-bit
Linux
32-bit
64-bit
To build a C++ program using the C API calls, such as the apicheck.C sample
program, replace the sdksample.C parameter with the name of the C++ program
and rename the output file parameter, -o sdksample, to the name of the output file
you want to create such as apicheck.
Use the commands defined in the following table to compile a C program:
Platform C Compile Command
AIX
32-bit
/usr/vacpp/bin/xlc -I../include -+ -o apicheck apicheck.c ../lib/ndmapi.a -lbsd -ldl -lsrc -lC -lpthreads
64-bit
/usr/vacpp/bin/xlc -q64 -I../include -+ -o apicheck apicheck.c ../lib/ndmapi64.a -lbsd -ldl -lsrc -lC
-lpthreads
Sun
32-bit
64-bit
62
/opt/ansic/bin/cc -I../include -o apicheck apicheck.c ../lib/ndmapi.a -lrpcsoc -lnsl -ldld -Wl,+s -lcl
-lstd_v2 -lCsup_v2
64-bit
HP-Itanium
32-bit
/opt/ansic/bin/cc -I../include -o apicheck apicheck.c ../lib/ndmapi.a -lrpcsoc -lnsl -ldld -Wl,+s -lcl
-lstd_v2 -lCsup -lunwind
64-bit
Linux
32-bit
64-bit
LinuxS390
32-bit
64-bit
C Function
Description
ndmapi_connect()
ndmapi_connect_c()
63
C++ Function
C Function
Description
ndmapi_sendcmd()
ndmapi_sendcmd_c()
ndmapi_recvresp()
ndmapi_recvresp_c()
64
from the commands. Control returns to the application when the connection is
established and Sterling Connect:Direct is ready for the first API request or when
an error condition is set.
Following is the format for the ndmapi_connect() or ndmapi_connect_c() function:
int32 ndmapi_connect ERROR_H error, char *
ndm_hostname, char *
ndm_portname
Description
Value
error
ndm_hostname
ndm_portname
Description
NDM_NO_ERROR
NDM_ERROR
65
error int32 *
resp_length, char *
resp_buffer,
Description
Value
error
A pointer to a Sterling
Connect:Direct-defined structure that
contains error information or status
information.
Pointer
resp_length
resp_buffer
ADPHSterling Connect:Direct
administrator phone number
CCODCompletion code
CKPTCheckpoint
CLASClass
CSDSCopy step start
timestamp
CSPESecure+ enabled indicator
CSPPSecure+ protocol
CSPSSecure+ cipher suite
66
Parameter
Description
Value
DBLWDestination file blocks
received
DBYWBytes written
DBYXBytes received
DCODDestination completion
code
DDAYSubmit date
DDS1Destination disposition 1
DDS2Destination disposition 2
DDS3Destination disposition 3
DESCSterling Connect:Direct
administrator description
DFILDestination file
DLDRDownload directory
restriction
DMSGDestination message ID
DNVLDestination number of
volumes
DRCWRecords written
DRUXRUs received
DVCNDestination file volume
count
DVOLDestination volume
array
DVSQDestination file volume
sequence number
ECMPExtended compression
ON or OFF
ECPRExtended compression
percentage
ECTPExtended compression
type
ETMCEla[sed clock time
ETMKElapsed kernal time
ETMUElapsed user time
FROMCopy sending node
67
Parameter
Description
Value
ICRCCRC indicator
LCCDLocal completion code
LCLPLocal IP address and port
number
LKFLLink fail
LMSGLocal message ID
LNODLocal node
MSGIMessage ID
MSGTMessage text
MSSTShort text
OCCDOther completion code
OERROther node in error
OMSGOther message ID
PACCPNODE account
PCRCCRC indicator
PFILProcess file
PNAMProcess name
PNODPNODE
PNUMProcess number
PPMNPDS member name
PRTYPriority
QUEUQueue
RECCRecord category
RECIRecord ID
RETARetain Process
RMTPRemote IP address and
port number
RSTRProcess restarted
RUSZRU Size
SACCSNODE account
SBIDSubmitter node ID
SBLRSource file blocks sent
68
Parameter
Description
Value
SBNDSubmitter node name
SBYRBytes read
SBYXBytes sent
SCMPStandard compression
SCODSource completion code
SCPRStandard compression
percentage
SDDYSchedule date
SDS1Source disposition 1
SDS2Source disposition 1
SDS2Source disposition 2
SDS3Source disposition 3
SELAElapsed time of the event
SFILSource file
SFSZsource file size
SMSGSource message ID
SNAMStep name
SNODSNODE
SNVLSource number of
volumes
SOPTSYSOPTS record
SRCRRecords read
SRUXRUs sent
SSTAStart time of the event
STARStart log date/time for
record
STATProcess status
STDLCopy termination record
(CTRC) log time
STIMSchedule time
STOPStop time of the event
STPTStop time of the event
(STOP duplicate)
STRTStart time of the event
(SSTA duplicate)
Chapter 4. Writing Custom Programs
69
Parameter
Description
Value
SUBMSubmitter ID
SUBNSubmitter node
SUMMSummary output
selector
SVCNSource file volume count
SVOLSource volume array
SVSQSource file volume
sequence number
TIMESubmit time
TZDILocal time zone delta
from GMT
XLATTranslation
ZLVLZlib compress level
Zlibmemory level
Zlibwindow size
None
Description
NDM_NO_ERROR
NDM_ERROR
TRUNCATED
70
Description
Value
error
Pointer
cmd_text
Pointer to a text
string
Pointer to a flag
ret_data
Pointer to a
structure
sendcmd_data Provides the caller with some information about the user Information
about the user
request. Because parsing of command text occurs at the
request
CMGR, the End User Application (EUA) has no way to
identify the command that was submitted, unless it
generated the text.
cmd_name
Pointer to name
of command
71
Parameter
Description
Value
cmd_id
Four-byte
identifier
/**************Command IDs*******************/
#define CHANGE_PROCESS 0x43484750 /* "CHGP" */
#define DELETE_PROCESS 0x44454c50 /* "DELP"*/
#define FLUSH_PROCESS 0x464c5350 /* "FLSP" */
#define SELECT_PROCESS 0x53454c50 /* "SELP"*/
#define SELECT_STATISTICS 0x53454c53 /* "SELS" */
#define SUBMIT 0x5355424d /* "SUBM" */
#define TRACE_API 0x41504920 /* "API " */
#define TRACE_CMGR 0x434d4752 /* "CMGR" */
#define TRACE_SMGR 0x534d4752 /* "SMGR" */
#define TRACE_PMGR 0x504d4752 /* "PMGR" */
#define TRACE_COM 0x434f4d4d /* "COMM"*/
#define TRACE 0x54524143 /* "TRAC" */
#define STOPNDM 0x53544F50
/* "STOP" */
The CLI uses these identifiers to ensure that rules are
being followed. For instance, if an ndmapi_sendcmd
returns with the resp_moreflag set and the cmd_id is not
SELECT_STATISTICS or SELECT_PROCESS, the CLI
generates an error.
data1, data2,
and data3
Description
NDM_ERROR
72
Note: The environment variable NDMAPICFG must be set to the pathname of the
client configuration file. Refer to Starting the CLI on page 1for instructions on
setting the environment variable.
To use the ConnectDirectSession class, your application must include the
cdunxsdk.h header file provided in the installation and must link with the
ndmapi.a file. Following is a sample ConnectDirectSession class program:
#include "cdunxsdk.h"
#include <iostream.h>
#include <string.h>
void getError(ConnectDirectSession& cdSess);
main()
{
ConnectDirectSession cdSess;
char processText[16384];
if (cdSess.SessionINF->Connect() == CD_SUCCESS)
{
strcpy(processText,"submit maxdelay=unlimited sdksample process snode=SNODENAME ");
strcat(processText,"copy00 copy from (file=sample.txt pnode)");
strcat(processText,"
to (file=sample.000 snode disp=rpl) ;");
if (cdSess.SessionINF->SendCommand(processText) == CD_SUCCESS)
{
printf("%s completed, pnumber = %ld.\n",
cdSess.SessionINF->GetCommandName(),
cdSess.SessionINF->GetProcessNumber());
sprintf(processText, "SELECT STATISTICS PNUMBER=%ld DETAIL=YES ;", cdSess.SessionINF>GetProcessNumber());
(cdSess.SessionINF->SendCommand(processText) == CD_SUCCESS)
{
}
else
{
getError(cdSess);
}
}
else
{
getError(cdSess);
}
cdSess.SessionINF->DisConnect();
}
else
{
getError(cdSess);
}
}
void getError(ConnectDirectSession& cdSess)
{
if (cdSess.SessionINF->GetFirstError())
{
printf("\nError Message: %s",
cdSess.SessionINF->GetMsgID());
printf("\nError Feedback: %d",
cdSess.SessionINF->GetFeedBackCode());
printf("\nError RC:
%d",
cdSess.SessionINF->GetReturnCode());
printf("\nError SUBST:
%s\n", cdSess.SessionINF->GetSubstitute());
}
while(cdSess.SessionINF->GetNextError())
{
printf("\nError Message: %s",
cdSess.SessionINF->GetMsgID());
printf("\nError Feedback: %d",
cdSess.SessionINF->GetFeedBackCode());
printf("\nError RC:
%d",
cdSess.SessionINF->GetReturnCode());
printf("\nError SUBST:
%s\n", cdSess.SessionINF->GetSubstitute());
}
}
73
Method
Description
Parameter
Return Values
Connect
DisConnect
void
CD_SUCCESS or
CD_FAILURE
SendCommand
Pointer to a
command
text buffer.
CD_SUCCESS or
CD_FAILURE
ReceiveResponse
void
CD_SUCCESS or
CD_FAILURE
GetResponse
void
Pointer to a
response buffer.
void
Length of the
response buffer from
the previously
issued call.
MoreData
void
void or a
CD_SUCCESS or
pointer to an CD_FAILURE
IP address
Connect() with a void parameter and port.
connects to the hostname and
port specified in the client
configuration file.
FALSEIf no data
is outstanding.
void
Pointer to a
command name
buffer.
void
Process number of a
submit command.
GetProcessCount
-1If no submit
command can be
found.
Process number of a
submit command
that issued a delete,
change or flush
process.
-1If no submit
command can be
found.
74
GetCurrentError
void
TRUEIf successful
FALSEIf no
current error exists.
GetNextError
void
TRUEIf successful
FALSEIf no more
errors are found.
Method
Description
Parameter
Return Values
GetPreviousError
void
TRUEIf successful
void
GetLastError
void
TRUEIf successful,
otherwise FALSE.
GetMsgID
void
Return Value:
Pointer to a message
ID if data block is
value.
GetFirstError
FALSEIf no
previous error
exists.
TRUEIf successful
FALSEIf no error
is found.
Feedback code.
GetReturnCode
void
GetStatus
void
Sterling
Connect:Direct
status code.
GetSubstitute
void
Pointer to a
substitution buffer.
DisplayError
Parameters:
Pointer to a
file I/O
structure.
Return Value:
Returns the highest
error found in the
error chain or -1 on
error.
75
76
Description
Security Exit
Statistics Exit
77
C++ Function
C Function
Description
exit_child_init()
exit_child_init_c()
recv_exit_msg()
recv_exit_msg_c()
send_exit_file()
send_exit_file_c()
send_exit_msg()
send_exit_msg_c()
Description
Value
logfile
The name of the log or trace file that is opened for Name of log file or
use by the user exit programs. Because the file open trace file
and security exit are started by SMGR, which is
running as root, the exits also run as root. Running
the exits as root can cause problems with file
permissions of the log file, so logfile enables you to
easily change owner or permissions on the file. See
the sample exit in d_dir/ndm/src/exit_skeleton.c
for more details.
78
Return Code
Description
GOOD_RC
ERROR_RC
Description
Value
exit_flag
EXIT_PROGRAM
msg_type
Pointer to message
recv_buf
Pointer to message
recv_buf_len
Length of message
Description
GOOD_RC
ERROR_RC
exit_flag
Description
Value
exit_flag
EXIT_PROGRAM
fd
79
Header
GOOD_RC
ERROR_RC
Description
Value
exit_flag
EXIT_PROGRAM
msg_type
send_buf
send_buf_len
Length of message
80
Return Code
Description
GOOD_RC
ERROR_RC
FILE_OPEN_OUTPUT_MSG
During the copy statement process, Sterling Connect:Direct sends a
FILE_OPEN_OUTPUT_MSG to the user exit program to open the destination file.
The FILE_OPEN_OUTPUT_MSG contains:
v The open function oflag parameter (for example,
O_CREAT|O_RDWR|O_TRUNC)
v The open function mode parameter, which controls file permissions
v UNIX user ID that will own the file
v UNIX group ID that will own the file
Chapter 5. Writing User Exits
81
FILE_OPEN_OUTPUT_REPLY_MSG
The user exit program sends a reply message to the Sterling Connect:Direct
FILE_OPEN_OUTPUT_MSG. The FILE_OPEN_OUTPUT_REPLY_MSG contains:
v Status value of zero for successful or non zero for failure
v Status text message (if status value is failure, status text message is included in
the error message)
v Pipe pid (for pipe I/O, the UNIX process ID of the shell process that is
performing the shell command for pipe I/O)
v Actual file name opened (to be used in statistics log messages)
If the status value is zero for successful, the user exit program must immediately
call send_exit_file() or send_exit_file_c() to send the file descriptor of the opened
file to Sterling Connect:Direct.
FILE_OPEN_INPUT_MSG
During the copy statement Process, Sterling Connect:Direct sends a
FILE_OPEN_INPUT_MSG to the user exit program to open the source file. The
FILE_OPEN_INPUT_MSG contains:
v The open function oflag parameter (for example, O_RDONLY)
v The open function mode parameter, which controls file permissions
v
v
v
v
v
FILE_OPEN_INPUT_REPLY_MSG
This message type is used when the user exit program sends a reply message to
the Sterling Connect:Direct FILE_OPEN_INPUT_MSG. The
FILE_OPEN_INPUT_REPLY_MSG contains:
v Status value of zero for success or non zero for failure
v Status text message (if status value is failure, status text message is included in
the error message)
v Pipe pid (for pipe I/O, the UNIX process ID of the shell process that is
performing the shell command for pipe I/O)
v Actual file name opened (used in statistics log messages)
82
v VALIDATE_MSG
v VALIDATE_REPLY_MSG
CAUTION:
If the security exit is used, Sterling Connect:Direct relies on it for user ID
authentication. If the security exit is not implemented correctly, security can be
compromised.
GENERATE_MSG
Sterling Connect:Direct sends a generate message to the user exit program at the
start of a session to establish a security environment. The PNODE sends the
GENERATE_MSG to the security exit to determine a user ID and security token to
use for authentication on the SNODE. The GENERATE_MSG contains:
v Submitter ID
v PNODE ID
v PNODE ID password, if user specified one
v SNODE ID
v SNODE ID password, if user specified one
v PNODE name
v SNODE name
GENERATE_REPLY_MSG
The user exit program sends a reply message to Sterling Connect:Direct. The
GENERATE_REPLY_MSG contains:
v Status value of zero for success or non zero for failure
v Status text message (if status value is failure, status text message is included in
the error message)
v ID to use for security context on the SNODE side (may or may not be the same
ID as in the generate message)
v Security token used in conjunction with ID for security context on the SNODE
side
VALIDATE_MSG
Sterling Connect:Direct sends a validate message to the user exit program. The
SNODE sends the VALIDATE_MSG to the security exit to validate the user ID and
security token received from the PNODE. The VALIDATE_MSG contains:
v Submitter ID
v PNODE ID
v PNODE ID password, if user specified one
v SNODE ID
v SNODE ID password, if user specified one
v
v
v
v
PNODE name
SNODE name
ID to use with security token
Security token (password, PASSTICKET, or other security token)
83
VALIDATE_REPLY_MSG
The user exit program sends a reply message to the Sterling Connect:Direct
VALIDATE_MSG. The VALIDATE_REPLY_MSG contains:
v Status value of zero for success or non zero for failure
v Status text message (if status value is failure, status text message is included in
the error message)
v ID used for security context
v Security token to use in conjunction with ID for security context
84
Notices
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not grant you
any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
For license inquiries regarding double-byte character set (DBCS) information,
contact the IBM Intellectual Property Department in your country or send
inquiries, in writing, to:
Intellectual Property Licensing
Legal and Intellectual Property Law
IBM Japan Ltd.
19-21, Nihonbashi-Hakozakicho, Chuo-ku
Tokyo 103-8510, Japan
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
This information could include technical inaccuracies or typographical errors.
Changes are periodically made to the information herein; these changes will be
Copyright IBM Corp. 1999, 2014
85
86
This information is for planning purposes only. The information herein is subject to
change before the products described become available.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
names of individuals, companies, brands, and products. All of these names are
fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which
illustrate programming techniques on various operating platforms. You may copy,
modify, and distribute these sample programs in any form without payment to
IBM, for the purposes of developing, using, marketing or distributing application
programs conforming to the application programming interface for the operating
platform for which the sample programs are written. These examples have not
been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or
imply reliability, serviceability, or function of these programs. The sample
programs are provided "AS IS", without warranty of any kind. IBM shall not be
liable for any damages arising out of your use of the sample programs.
Each copy or any portion of these sample programs or any derivative work, must
include a copyright notice as follows:
IBM 2014. Portions of this code are derived from IBM Corp. Sample Programs.
Copyright IBM Corp. 2014.
If you are viewing this information softcopy, the photographs and color
illustrations may not appear.
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of
International Business Machines Corp., registered in many jurisdictions worldwide.
Other product and service names might be trademarks of IBM or other companies.
A current list of IBM trademarks is available on the Web at Copyright and
trademark information at http://www.ibm.com/legal/copytrade.shtml.
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered
trademarks or trademarks of Adobe Systems Incorporated in the United States,
and/or other countries.
IT Infrastructure Library is a registered trademark of the Central Computer and
Telecommunications Agency which is now part of the Office of Government
Commerce.
Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo,
Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or
registered trademarks of Intel Corporation or its subsidiaries in the United States
and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other
countries, or both.
Notices
87
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of
Microsoft Corporation in the United States, other countries, or both.
ITIL is a registered trademark, and a registered community trademark of the Office
of Government Commerce, and is registered in the U.S. Patent and Trademark
Office.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Java and all Java-based trademarks and logos are trademarks or registered
trademarks of Oracle and/or its affiliates.
Cell Broadband Engine is a trademark of Sony Computer Entertainment, Inc. in the
United States, other countries, or both and is used under license therefrom.
Linear Tape-Open, LTO, the LTO Logo, Ultrium and the Ultrium Logo are
trademarks of HP, IBM Corp. and Quantum in the U.S. and other countries.
Connect Control Center, Connect:Direct, Connect:Enterprise, Gentran,
Gentran:Basic, Gentran:Control, Gentran:Director, Gentran:Plus,
Gentran:Realtime, Gentran:Server, Gentran:Viewpoint, Sterling Commerce,
Sterling Information Broker, and Sterling Integrator are trademarks or registered
trademarks of Sterling Commerce, Inc., an IBM Company.
Other company, product, and service names may be trademarks or service marks
of others.
88
Index
Special characters
-e nn parameter, direct command 3
-h parameter, for direct 3
-n name parameter, direct command 3
-p nnnnn parameter, direct command 3
-r parameter, direct command 3
-s parameter
direct command 2
-t nn parameter, direct command 2
-x parameter, direct command 3
-z parameter, direct 3
&symbolic name parameter, submit
command 11
"Generic" Parameter Value 6
"List" Parameter Value 6
A
Accessing Sterling Connect
Direct Messages 48
API function calls 61
exit_child_init_c() function 78
exit_child_init() function 78
ndmapi_connect_c() 64
ndmapi_connect() 64
ndmapi_disconnect_c() 65
ndmapi_disconnect() 65
ndmapi_recvresp() 66
ndmapi_sendcmd() 71
ndmapi_sendcmd()_c 71
recv_exit_msg_c() 79
recv_exit_msg() 79
send_exit_file_c() 79
send_exit_file() 79
send_exit_msg_c() 80
send_exit_msg() 80
C
C program, compile command 62
C++ program, compile command 61
ccode parameter
select statistics command 26
cfgcheck utility
arguments 55
change process command
description 4
format 13
overview 13
Changing Process parameters 13
class parameter
change process command 15
submit command 7
CLI 1
CLI Commands 1
CLI history commands 4
CLI Job Control 3
cmd_id parameter 72
cmd_name parameter 71
cmd_text parameter 71
Copyright IBM Corp. 1999, 2014
E
error parameter
ndmapi_connect() function 65
ndmapi_recvresp() function 66
ndmapi_sendcmd() function 71
Error responses 64
Example - Submit a Process that runs
weekly 12
Example - Submit a Process with a Start
Time 12
Example - Submit a Process with No File
Value 12
Example Submit a Process and Turn on
Tracing 13
Execution queue 41
Exit log files 84
file_exit.log 84
stat_exit.log 84
exit_flag parameter
recv_exit_msg() function 79
exit_flag parameter, send_exit_file()
function 79
exit_msg parameter
recv_exit_msg() function 80
F
File Open Exit Messages 81
FILE_OPEN_INPUT_MSG 82
FILE_OPEN_INPUT_REPLY_MSG 82
FILE_OPEN_OUTPUT_MSG 81
FILE_OPEN_OUTPUT_REPLY_MSG 82
FILE_OPEN_INPUT_MSG 82
FILE_OPEN_INPUT_REPLY_MSG 82
FILE_OPEN_OUTPUT_MSG 81
FILE_OPEN_OUTPUT_REPLY_MSG 82
filename parameter 6
flush process command 4, 17
G
D
Decompress a file on remote node during
copy step 54
Decompress a text file 53
delete process command 4, 15
destfile parameter, select statistics
command 26
detail parameter
change process command 25, 34
Detailed report for a Process 34
Determing the outcome of a Process 26
direct command
parameters, -h 3
parameters, -P 2
parameters, -r 3
parameters, -z 3
Displaying message text 49
GENERATE_MSG 83
GENERATE_REPLY_MSG 83
Generating a Configuration Report 55
base installation 56
Generating a Configuration Report on
Sterling Connect:Direct Direct for
UNIX 57
H
hold parameter
submit command
Hold queue 43
89
I
informational responses, API 64
Initializing communications using user
exit functions 78
L
logfile parameter
exit_child_init() function
78
M
Managing Processes 39
maxdelay parameter 7
Message
message ID format 48
Message file
record format 49
Message File Content 48
Message file record format 49
Message files
overview 48
Message text 49
Modifying a translation table 47
Modifying translation tables 46
Monitor Process Status in the TCQ 19
Monitoring Process status 22
Moving a CLI process
foreground 4
msg_type parameter, recv_exit_msg()
function 79
msg_type parameter, send_exit_msg()
function 80
N
ndm_hostname parameter 65
ndm_portname parameter 65
ndmapi_connect() or ndmapi_connect()_c
function
format 65
ndmapi_recvresp() function
example 70
ndmxlt command parameters
-ffiller 46
-m 46
-ooutputfile 46
-rradix 46
-ssourcefile 46
newname parameter, submit
command 7
newsnode parameter, change process
command 15
P
pacct parameter 8
Parameters, scheduling for the TCQ 39
Passing a file descriptor using user exit
functions 79
pmgr parameter, trace command 36
pname parameter
change process command 13, 17, 20,
22, 27
delete process command 16
90
Q
queue parameter 20, 23
change process command
20, 23
R
reccat parameter
select statistics command 27
Receiving responses using API function
calls 66
recids parameter
select statistics command 28
recv_buf_len parameter 79
release parameter 15
Remove a Process from the TCQ 15
Removing a Process from the Execution
Queue 17
resp_buffer parameter 66
resp_length parameter 66
resp_moreflag parameter
ndmapi_recvresp() function 70
ndmapi_sendcmd() function 71
Restricting Scripts and Commands 5
ret_data parameter 71
retain parameter 8
S
sacct parameter 8
Scheduling activity 39
Scheduling parameters 39
Security Exit Messages 82
GENERATE_MSG 83
GENERATE_REPLY_MSG 83
VALIDATE_MSG 83
VALIDATE_REPLY_MSG 84
select process command 4, 19, 22
select statistics command 4, 26
format 26
Send precompressed file to z/OS and
store as precompressed 54
send_buf parameter
recv_exit_msg() function 79
send_exit_msg() function 80
send_buf_len parameter 80
sendcmd_data parameter 71
T
TCQ
hold parameter 39
overview 39
Process progression 40
startt parameter 39
Terminating a connection using API
function calls 65
The Timer Queue 43
trace command 35
format 35
Translation 47
Translation table
compiling 46
creating 45, 46
modifying 47
Translation table error messages 48
Translation Tables 45
U
User
User
User
User
Exit
Exit
Exit
Exit
Functions 77
Messages 81
Programs 77
Stop Message 84
V
Validate configuration files 55
VALIDATE_MSG 83
VALIDATE_REPLY_MSG 84
view process command 4
W
Wait queue 42
Waiting for a message using user exit
functions 79
Wildcard facility 6
Writing Custom C Programs 63
Writing Custom C++ Programs 73
Writing Custom Programs 61
Index
91
92
Printed in USA