*---------*---------------*-----------------*----------------*---------------* | CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS | | | | | FIELD | | *---------*---------------*-----------------*----------------*---------------* | ACQ | Device name | WORKSTN file | | _ ER _ | *---------*---------------*-----------------*----------------*---------------*
The ACQ operation acquires the program device specified in factor 1 for the WORKSTN file specified in factor 2. If the device is available, ACQ attaches it to the file. If it is not available or is already attached to the file, an error occurs. If an indicator is specified in positions 56 and 57, the indicator is set on. If no indicator is specified, but the INFSR subroutine is specified, the INFSR receives control when an error/exception occurs. If no indicator or INFSR subroutine is specified, the default error/exception handler receives control when an error/exception occurs.
No input or output operation occurs when the ACQ operation is processed. ACQ must only be used with a multiple device file. See the section on "Multiple-Device Files" in the chapter about using WORKSTN files in the RPG/400* User's Guide.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.