The ENDEC service allows you to encode or decode SCLM members. This
service can be used initially to encode members or decode SCLM members
so they can be used in SCLM language translators and external SCLM
processes.
Command invocation format
>>-FLMCMD--ENDEC,project--,-+---------+--,-+------------+------->
'-prj_def-' '-endec_parm-'
>--,-+-----------+--,-+----------+--,-+---------+--------------->
'-in_ddname-' '-in_group-' '-in_type-'
>--,-+-----------+--,-+------------+--,-+-----------+----------->
'-in_member-' '-out_ddname-' '-out_group-'
>--,-+----------+--,-+------------+--,msgdd--------------------><
'-out_type-' '-out_member-'
Call invocation format
>>-lastcc--:=--FLMLNK('ENDEC--',sclm_id--,ENCODE/DECODE--------->
>--,-+-----------+--,-+----------+--,-+---------+--------------->
'-in_ddname-' '-in_group-' '-in_type-'
>--,-+-----------+--,-+------------+--,-+-----------+----------->
'-in_member-' '-out_ddname-' '-out_group-'
>--,-+----------+--,-+------------+--,$msg_array--);-----------><
'-out_type-' '-out_member-'
Parameters
- project
- The project name. The maximum parameter length is 8 characters.
This parameter is used for FLMCMD only.
- prj_def
- The project definition name. It defaults to the project name.
The maximum parameter length is 8 characters. This parameter is used
for FLMCMD only.
- sclm_id
- An SCLM ID associated with a given project and project
definition. The INIT service generates the SCLM ID. The maximum
parameter length is 8 characters. This parameter is used for FLMLNK
only.
- ENCODE
- ENCODE specifies that the input data set and member are encoded
into the output data set and member. If the input is already encoded
the service will receive a return code of 4.
- DECODE
- DECODE specifies that the input data set and member will be decoded
into the output data set and member. If the input is already decoded
the service will receive a return code of 4.
- in_ddn
- DDNAME containing the data set and member to be used as input to
the ENDEC service. If specified, the in_group and in_type parameters
should not be specified. The maximum parameter length is 8 characters.
- in_group
- The group to be used to determine the data set to be used as input
to the ENDEC service. If specified, the in_type and in_member parameter
should also be specified. The maximum parameter length is 8 characters.
- in_type
- The type to be used to determine the data set to be used as input
to the ENDEC service. If specified, the in_group and in_member parameter
should also be specified. The maximum parameter length is 8 characters.
- in_member
- The member under SCLM control to be used as input to the ENDEC
service.The maximum parameter length is 8 characters.
- out_ddn
- DDNAME containing the data set and member to be used as output
to the ENDEC service. If specified, the out_group and out_type parameters
are not specified. The maximum parameter length is 8 characters.
- out_group
- The group to be used to determine the data set to be used as output
to the ENDEC service. If specified, the out_type and out_member parameter
are also specified. The maximum parameter length is 8 characters.
- out_type
- The type to be used to determine the data set to be used as output to
the ENDEC service. If specified, the out_group and out_member parameter
is also specified. The maximum parameter length is 8 characters.
- out_member
- The member under SCLM control that is used as output to the
ENDEC service. The maximum parameter length is 8 characters.
- dd_msgs
- The ddname indicating the destination of the messages generated by
the ENDEC service. If you specify a blank ddname, SCLM routes the ENDEC
messages to the default output device, such as your terminal. Otherwise,
before you call the ENDEC service, you must allocate the ddname. These
attributes should be used; RECFM=F, :REC:=80, BLKSIZE=80. The maximum
parameter length is 8 characters. This parameter is used for FLMCMD only.
- $msg_array
- An output parameter pointing to the message array. See "Pointer
parameter descriptions" on page 333 for more information about $msg_array.
This parameter is used for FLMLNK only.
Return codes
Additional special services messages are written to the FLMMSGS
ddname. See SCLM service messages for more information.
Other return codes might be produced by the FLMCMD or the FLMLNK
processor. See SCLM service return codes for more information.
Possible return codes are:
- 0
- Normal completion. The encoding and decoding was performed.
- 4
- Warning if ENCODE was specified, the input data set and member
is already encoded. If DECODE was specified, the input data set and
member is already decoded.
- 12
- Error completion. Refer to the messages for more information.