DATACLASS (FTP client and server) statement

Use the DATACLASS statement to specify the SMS-managed data class as defined by your organization for the FTP server.

Server
This setting applies when creating files on the server's system (for example, with a PUT subcommand).
Client
This setting applies when creating files on the client's system (for example, with a GET subcommand).

Syntax

Read syntax diagramSkip visual syntax diagram
>>-DATACLASS--class--------------------------------------------><

Parameters

class
The SMS-managed data class as defined by your organization. There is no default.

Examples

Use the SMS data class SMSDATA when allocating new data sets:
DATACLASS SMSDATA
Results:
  • If you code any of the following FTP.DATA statements or let FTP assign them default values, the configured values or default values override the values specified in the SMS DATACLASS:
    • BLKSIZE
    • DIRECTORY
    • LRECL
    • PRIMARY
    • RECFM
    • RETPD
    • SECONDARY
    Guideline: To prevent these statements from overriding the values specified in the SMS DATACLASS, perform one of the following actions:
    • Code the statements with no parameters.
    • For client allocations, use the LOCSIte subcommand to configure these options with no values before allocating a new data set.
    • For server allocations, use the SIte subcommand or the server SITE command to configure these options with no values before allocating a new data set.
  • If you code the following statements in FTP.DATA with the default value or let FTP assign the default value, FTP will use the value in the SMS DATACLASS.
    • DNSTYPE
    • EATTR

    If the SMS DATACLASS does not specify the value, FTP will use the system default.

    Guideline: To override the SMS DATACLASS value and the system default value, perform one of the following actions:
    • Code statements in FTP.DATA with the values that you want.
    • For client allocations, use the LOCSIte subcommand to configure the values that you want.
    • For server allocations, use the SIte subcommand or the server SITE command to configure the values that you want.
  • The PDSTYPE FTP.DATA statement has no default values. If you code this statement in FTP.DATA with parameters, the configured value overrides the value specified in the SMS DATACLASS.
    Guideline: To prevent this statement from overriding the value specified in the SMS DATACLASS, perform one of the following actions:
    • Code the statement with no parameter.
    • Remove the statement from FTP.DATA.
    • For client allocations, use the LOCSIte subcommand to configure this option with no value before allocating a new data set.
    • For server allocations, use the SIte subcommand or the server SITE command to configure this option with no value before allocating a new data set.
  • If you specify the DCBDSN statement, the LRECL, RECFM, BLKSIZE, and RETPD (if specified) of the DCBDSN data set override the values specified in the SMS DATACLASS.
    Guideline: To prevent the DCBDSN values from overriding the values specified in the SMS DATACLASS, perform one of the following actions:
    • Code statements in FTP.DATA for LRECL, RECFM, BLKSIZE, and RETPD with no keyword values.
    • For client allocations, use the LOCSIte subcommand to configure these options with no values before allocating a new data set.
    • For server allocations, use the SIte subcommand or the server SITE command to configure these options with no values before allocating a new data set.
  • If you specify the MGMTCLASS statement and the requested management class specifies a retention period, the RETPD value of the management class might override the RETPD value of DATACLASS.