Previous Topic: /WRID=identifier /NOWRID (D)

Next Topic: DELETE

Examples

  1. This example creates a job without using the /PROMPT qualifier, so the manager prompts the user for a standard subset of the qualifiers. The user creates a new job called WKLY-RENAME, specifying that a command file named @SYS$DEVICE:[USER1.PROJ-C]WKLY-COPY.COM should run this job on fiscal week 6 at 6 p.m. only if that day is a Friday.
    SCHEDULE>  CREATE 
    _VMS Command: @SYS$DEVICE:[DOE.PROJ-C]WKLY-COPY.COM 
    _Job Name [None] : WKLY RENAME 
    _Schedule Interval [None] : F W6 18:00:00 
    _Days [ALL]: (NONE,FRIDAY)
     _Start Time [ 9-AUG-1996 18:00:00.46] : 
    _Output file [None] : SYS$DEVICE:[DOE.PROJ-C.WKLY]WKLY-RENAME.REP Comment [None] : Check for weekly ljt/copy to subdirectory and
    		rename/check for renamed ljts. 
    _%NSCHED-I-RQSTSUCCSS, Job       2043 - Created
    

    The manager puts the output in a specified file named SYS$DEVICE:[DOE.PROJ-C.WKLY]WKLY-RENAME.REP.

  2. This example is similar to the first example, but the user specifies the /PROMPT qualifier.
    SCHEDULE> CREATE/PROMPT 
    _VMS Command: @SYS$DEVICE:[EXAMPLE.PROJECT-C]WEEKLY-COPY.COM 
    _Job Name [None] : WEEKLY-RENAME 
    _Group [None] : WEEKLY 
    _Type [None] : PROJECT-COSTS 
    _Stall Notify [None] : 
    _Schedule Interval [None] : F W6 18:00:00 
    _Days [ALL]: (NONE,FRI)
     _Special Day Restrictions [NONE]: 
    _Start Time [ 7-AUG-1996 18:00:00.04] : 
    _Output file [None] : SYS$DEVICE:[EXAMPLE.PROJECT-C]WEEKLY-
     RENAME.REP 
    _Mode (Detached, Batch, Remote [Detached] :)
     _Cluster Node [Default] : 
    _Retain (Success, Error, None or All [ALL]:) ALL 
    _Restart (Yes, No [Yes]:) YES 
    _Retry (Yes, No [No]:) YES 
    _Notify (Yes, No [Yes]:) NO 
    _Send_Mail (All, Error, Success or None [NONE]:) ALL 
    _Send MAIL on Special Day Action (Yes, No [No]:)
     _Use_next_time (Yes, No [No]:) YES 
    _OPCOM (Yes, No [No] :)
     _Mail_Address [EXAMPLE] : EXAMPLE 
    _User_Name [EXAMPLE] : EXAMPLE 
    _Run Priority [Default] : 
    _Pre Function [None] : DIR/PRINT[EXAMPLE.PROJECT-C]*.REP 
    _Post Function [None] : DIR/PRINT[EXAMPLE.PROJECT-C.WEEKLY]*.REP _Maximum Time Warning [None] : 
    _Maximum Time Job [None] : 
    _Synchronization [None] : 
    _Comment [None] : Check for weekly rep's/copy to subdirectory and
    		rename/check new rep files 
     %NSCHED-I-RQSTSUCCSS, Job       10521 - Created
    

As a result, the manager prompts the user for the following additional qualifiers:

/GROUP

/PREFUNCTION

/TYPE

/POSTFUNCTION

/CLUSTER_NODE

/MAX_TIME

/RESTART

/SYNCHRONIZATION

/RETRY

/SD_RESTRICTION

/NOTIFY

/MODE

/SEND_MAIL

/RETAIN

/MAIL_ADDRESS

/OPCOM

/USER_NAME

/TJOB

/RUN_PRIORITY

/SJOB

The user specifies the following for mail notification:

The user also specifies a prefunction and postfunction: