# qmove

## PROLOG



           This manual page is part of the POSIX Programmer's Manual.  The
           Linux implementation of this interface may differ (consult the
           corresponding Linux manual page for details of Linux behavior), or
           the interface may not be implemented on Linux.
    


## NAME



           qmove — move batch jobs
    


## SYNOPSIS



           qmove _destination job_identifier_...
    


## DESCRIPTION



           To move a batch job is to remove the batch job from the batch
           queue in which it resides and instantiate the batch job in another
           batch queue.  A batch job is moved by a request to the batch
           server that manages the batch job. The _qmove_ utility is a user-
           accessible batch client that requests the movement of one or more
           batch jobs.
    
           The _qmove_ utility shall move those batch jobs, and only those
           batch jobs, for which a batch _job_identifier_ is presented to the
           utility.
    
           The _qmove_ utility shall move batch jobs in the order in which the
           corresponding batch _job_identifier_ s are presented to the utility.
    
           If the _qmove_ utility fails to process a batch _job_identifier_
           successfully, the utility shall proceed to process the remaining
           batch _job_identifier_ s, if any.
    
           The _qmove_ utility shall move batch jobs by sending a _Move Job_
           _Request_ to the batch server that manages each batch job. The _qmove_
           utility shall not exit before the batch jobs corresponding to all
           successfully processed batch _job_identifier_ s have been moved.
    


## OPTIONS



           None.
    


## OPERANDS



           The _qmove_ utility shall accept one operand that conforms to the
           syntax for a destination (see _Section 3.3.2_ , _Destination_).
    
           The _qmove_ utility shall accept one or more operands that conform
           to the syntax for a batch _job_identifier_ (see _Section 3.3.1_ , _Batch_
           _Job Identifier_).
    


## STDIN



           Not used.
    


## INPUT FILES



           None.
    


## ENVIRONMENT VARIABLES



           The following environment variables shall affect the execution of
           _qmove_ :
    
           _LANG_      Provide a default value for the internationalization
                     variables that are unset or null. (See the Base
                     Definitions volume of POSIX.1‐2017, _Section 8.2_ ,
                     _Internationalization Variables_ the precedence of
                     internationalization variables used to determine the
                     values of locale categories.)
    
           _LC_ALL_    If set to a non-empty string value, override the values
                     of all the other internationalization variables.
    
           _LC_CTYPE_  Determine the locale for the interpretation of sequences
                     of bytes of text data as characters (for example,
                     single-byte as opposed to multi-byte characters in
                     arguments).
    
           _LC_MESSAGES_
                     Determine the locale that should be used to affect the
                     format and contents of diagnostic messages written to
                     standard error.
    
           _LOGNAME_   Determine the login name of the user.
    


## ASYNCHRONOUS EVENTS



           Default.
    


## STDOUT



           None.
    


## STDERR



           The standard error shall be used only for diagnostic messages.
    


## OUTPUT FILES



           None.
    


## EXTENDED DESCRIPTION



           None.
    


## EXIT STATUS



           The following exit values shall be returned:
    
            0    Successful completion.
    
           >0    An error occurred.
    


## CONSEQUENCES OF ERRORS



           In addition to the default behavior, the _qmove_ utility shall not
           be required to write a diagnostic message to standard error when
           the error reply received from a batch server indicates that the
           batch _job_identifier_ does not exist on the server. Whether or not
           the _qmove_ utility waits to output the diagnostic message while
           attempting to locate the job on other servers is implementation-
           defined.
    
           _The following sections are informative._
    


## APPLICATION USAGE



           None.
    


## EXAMPLES



           None.
    


## RATIONALE



           The _qmove_ utility allows users to move jobs between queues.
    
           The alternative to using the _qmove_ utility—deleting the batch job
           and requeuing it—entails considerably more typing.
    
           Since the means of selecting jobs based on attributes has been
           encapsulated in the _qselect_ utility, the only option of the _qmove_
           utility concerns authorization. The **-u** option provides the user
           with the convenience of changing the user identifier under which
           the batch job will execute. Minimalism and consistency have taken
           precedence over convenience; the **-u** option has been deleted
           because the equivalent capability exists with the **-u** option of the
           _qalter_ utility.
    


## FUTURE DIRECTIONS



           The _qmove_ utility may be removed in a future version.
    


* * *