Change Directory Shadow System (CHGDIRSHD)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Change Directory Shadow System (CHGDIRSHD) command changes a system that is defined to be shadowed.

Restriction:

To use this command, you must have security administrator (*SECADM) authority.

Top

Parameters

Keyword Description Choices Notes
SYSNAME System name Character value Required, Key, Positional 1
NXTSHD Next shadow Single values: *CURRENT, *SCD, *SAME
Other values: Element list
Optional
Element 1: Date Date
Element 2: Time Time
SCD Scheduled shadow Single values: *CURRENT, *SAME
Other values: Element list
Optional
Element 1: Date Date
Element 2: Time Time
FRQ Shadowing frequency *DAILY, *WEEKLY, *BIWEEKLY, *MONTHLY, *MONTHLYREL, *HOURS, *SAME Optional
HOURS Intervals of hours 1-999, *SAME Optional
SKIPDAY Days to skip Single values: *NONE, *SAME
Other values (up to 5 repetitions): *SUN, *MON, *TUE, *WED, *THU, *FRI, *SAT
Optional
MONTHWK Week of the month 4, *LAST, *SAME Optional
REINZ Reinitialize data Single values: *NONE, *NONAPPC, *SAME
Other values: Element list
Optional
Element 1: Method *APPC
Element 2: Replace data *NO, *YES, *SAME
RMTLOCNAME Remote location name Character value, *SYSNAME, *SAME Optional
MODE Mode Character value, *NETATR, *SAME Optional
RMTNETID Remote network identifier Character value, *LOC, *NETATR, *NONE, *SAME Optional
LCLLOCNAME Local location name Character value, *LOC, *NETATR, *SAME Optional
TEXT Text 'description' Character value, *SYSNAME, *SAME Optional
Top

System name (SYSNAME)

Specifies the system that supplies data to the local system. A maximum of 8 characters can be specified for the name of the supplier system you are changing. You can specify uppercase letters A through Z, numbers 0 through 9, and special characters @, #, $, and embedded blanks. Embedded blanks must be enclosed in single quotation marks ('). Leading blanks are not allowed. The @, #, and $ characters are not recommended because they are not part of an invariant character set and are not available on all keyboards.

This is a required parameter.

Top

Next shadow (NXTSHD)

Specifies the date and time when the next shadow will occur. This is the same as the scheduled shadow date unless a retry is performed or a next shadow date is specified in addition to the scheduled shadow date.

*SAME
The value does not change.
*CURRENT
The current date and time is used.
*SCD
The scheduled date and time is used.

The possible Next Shadow Date values are:

next-shadow-date
Specify the date on which the system next begins shadowing data to your system. The date must be specified in the job date format.

The possible Next Shadow Time values are:

next-shadow-time
Specify the time at which the system next begins shadowing data to your system.

The time is specified in 24-hour format with or without a time separator as follows:

  • With a time separator, specify a string of 5 or 8 digits where the time separator separates the hours, minutes, and seconds. If this command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command fails.
  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds. Valid values for hh range from 00 through 23. Valid values for mm and ss range from 00 through 59.

This is a required parameter.

Top

Scheduled shadow (SCD)

Specifies the date and time of the scheduled shadow.

*SAME
The value does not change.
*CURRENT
The system begins shadowing data at the current date and time.

The possible Shadow Date values are:

scheduled-shadow-date
Specify the date on which the system begins shadowing data to your system. The date must be specified in the job date format.

The possible Shadow Time values are:

scheduled-shadow-time
Specify the time at which the system begins shadowing data to your system.

The time is specified in 24-hour format with or without a time separator as follows:

  • With a time separator, specify a string of 5 or 8 digits where the time separator separates the hours, minutes, and seconds. If this command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command fails.
  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds. Valid values for hh range from 00 through 23. Valid values for mm and ss range from 00 through 59.

This is a required parameter.

Top

Shadowing frequency (FRQ)

Specifies the frequency with which the supplier system you are changing shadows data to your system, based on the value specified on the SCD parameter.

*SAME
The value does not change.
*WEEKLY
Shadowing occurs once a week.
*DAILY
Shadowing occurs once a day.
*BIWEEKLY
Shadowing occurs every other week.
*MONTHLY
Shadowing occurs on the same date every month.
*MONTHLYREL
Shadowing occurs on the same relative day of the same relative week of every month, such as the first Monday of the month.
*HOURS
Shadowing occurs in the interval specified on the HOURS parameter.
Top

Intervals of hours (HOURS)

Specifies the number of hours between shadows from the supplier system. This parameter is valid only when FRQ(*HOURS) is specified.

*SAME
The value does not change.
number-of-hours
Specify the number of hours between shadowing.
Top

Days to skip (SKIPDAY)

Specifies the days of the week when shadowing does not occur. A maximum of five values, other than *NONE, can be specified.

This parameter is valid only when FRQ(*DAILY) is specified.

*SAME
The value does not change.
*NONE
No days are skipped.
*SUN
Sundays are skipped.
*MON
Mondays are skipped.
*TUE
Tuesdays are skipped.
*WED
Wednesdays are skipped.
*THU
Thursdays are skipped.
*FRI
Fridays are skipped.
*SAT
Saturdays are skipped.
Top

Week of the month (MONTHWK)

Specifies whether shadowing that occurs on the same relative day of the month is scheduled to occur in the fourth week or the last week of the month.

This parameter is valid only when FRQ(*MONTHLYREL) is specified and when the SCD parameter date is the 22nd, 23rd, or 24th.

*SAME
The value does not change.
4
Shadowing occurs on the same relative day in the fourth week of the month.
*LAST
Shadowing occurs on the same relative day in the last week of the month, whether or not the month has four or five weeks.
Top

Reinitialize data (REINZ)

Specifies the method used if the first shadow is done again. The first shadow duplicates all of the data in the supplier system's distribution directory. Subsequent shadows include only data that has changed since the previous shadow.

The possible Method values are:

*SAME
The value does not change.
*NONE
The shadowed directory data is not reinitialized.
*NONAPPC
The Copy to Directory (CPYTODIR) command is used to reinitialize the directory.
*APPC
The first shadow occurs when this command is run using advanced program-to-program (APPC) communications. If you are adding a supplier system with a large directory, you may want to specify *NONAPPC to prevent the first shadow from monopolizing your communications lines.

When *APPC is specified, Element 2 allows you to specify whether the data in the fields of a directory entry on your system is replaced by shadowed data if the same entry also exists in the supplier system's directory.

When *APPC is specified for the Method field, the possible Replace Data values are:

*SAME
The value does not change.
*NO
The data in the fields of existing directory entries on your system is not replaced with data from the supplier system.
*YES
All shadowed data is added to your system distribution directory. The data in the fields of existing directory entries on your system is replaced with shadowed data if the same entry also exists in the supplier system's directory.
Top

Remote location name (RMTLOCNAME)

Specifies the remote location name of the supplier system you are changing.

*SAME
The value does not change.
*SYSNAME
The value specified on the SYSNAME parameter is used for the remote location name.
remote-location-name
Specify the name of a remote location.

A maximum of 8 characters can be specified. The first character must be an uppercase letter A through Z, or special character $, #, or @. The name cannot contain a blank, plus sign (+), period (.), or an underscore (_). For more information, see the APPC Programmer's Guide.

Top

Mode (MODE)

Specifies the name of the mode that defines the sessions on the device used when shadowing data from the supplier system.

*SAME
The value does not change.
*NETATR
The mode in the network attributes is used.
mode-name
Specify the mode name.

A maximum of 8 characters can be specified. The first character must be an uppercase letter A through Z, or special character $, #, or @. The name cannot contain a blank, plus sign (+), period (.), or an underscore (_). For more information, see the APPC Programmer's Guide.

Top

Remote network identifier (RMTNETID)

Specifies the supplier system's remote network identifier (ID).

*SAME
The value does not change.
*LOC
The remote network ID associated with the remote location is used. If several remote network IDs are associated with the remote location, the system determines which remote network ID is used.
*NETATR
The remote network identifier specified in the network attributes is used.
*NONE
No remote network ID is used.
remote-network-ID
Specify the remote network ID.

A maximum of 8 characters can be specified. The first character must be an uppercase letter A through Z, or special character $, #, or @. The name cannot contain a blank, plus sign (+), period (.), or an underscore (_). For more information, see the APPC Programmer's Guide.

Top

Local location name (LCLLOCNAME)

Specifies the local location name. The local location name is used to identify your system to the supplier system you are changing.

*SAME
The value does not change.
*LOC
The local location name associated with the remote location is used.
*NETATR
The LCLLOCNAME value specified in the system network attributes is used.
local-location-name
Specify the local location name.

A maximum of 8 characters can be specified. The first character must be an uppercase letter A through Z, or special character $, #, or @. The first character cannot contain a blank, plus sign (+), period (.), or an underscore (_). For more information, see the APPC Programmer's Guide.

Top

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*SAME
The value does not change.
*SYSNAME
The name specified on the SYSNAME parameter is used for the description.
'description'
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Examples

Example 1: Changing the Next Shadow Date and Time

CHGDIRSHD   SYSNAME(NYCITY)
            NXTSHD('93/05/01' '8:00:00')

This command changes the next shadowing occurrence for the system NYCITY. This does not effect the scheduled date and time. When the shadowing is completed for this system, the next date and time will be calculated from the scheduled date and time. This command is used for temporary changes to shadowing schedules.

Example 2: Changing the Shadow Date and Time

CHGDIRSHD   SYSNAME(NEWYORK)
            SCD('93/06/01' '20:00:00')
            FRQ(*BIWEEKLY)

This command changes the scheduled shadow date for system NEWYORK to June 1, 1993 at 8:00 PM. The frequency of the shadow is every 2 weeks.

Top

Error messages

*ESCAPE Messages

CPF90A8
*SECADM special authority required to do requested operation.
CPF90FE
Add or change of shadow supplier &1 was not successful.
CPF905C
Error occurred trying to find a translation table.
CPF9838
User profile storage limit exceeded.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
Top