Previous Topic: Feedback Codes

Next Topic: $DSCALL OPT=ALLOC


$DSCALL OPT=ALIAS

Creates an alias for a member of a PDS.

&CONTROL SHRVARS=($DS)

EXEC $DSCALL OPT=ALIAS 
             DSN=dataset_name 
             MEMBER=member_name 
             ALIAS=member_name

This call is used to create an alias entry for a member of a PDS. The alias entry inherits the SPF statistics of the original member. This call fails if a member with the same alias name already exists.

Operands:

OPT=ALIAS

Specifies that an alias be created for a member of a PDS.

DSN=dataset_name

Specifies the name of the PDS containing the member. No member name is specified.

MEMBER=member_name

Specifies the existing member for which an alias is to be created.

ALIAS=member_name

Specifies the alias name to be created. Any subsequent references to this name result in access to the member specified in the MEMBER operand.

Return Codes:

For information on &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes in this chapter.

Example: OPT=ALIAS

EXEC $DSCALL OPT=ALIAS DSN=CUSTOMER.DATA MEMBER=TEST01 + ALIAS=PROD01