GDSX Manual
Operations and Support
Extended General Device Support (GDSX) Manual–134303
3-7
Running SCF and Starting Requesters
In a GDSX application with a LINE, there can also be dynamic SUs and preconfigured
SUs. All SUs under a LINE must be preconfigured. SUs not under a LINE can be
dynamic or preconfigured.
When adding SUs under a LINE:
1. Add the LINE.
2. Add the SUs under the LINE.
3. Start the LINE.
Then run the applications that communicate with the SUs under the LINE.
Here is an example of a configuration having a LINE and two SUs under the LINE:
> PARAM MAXLINES 1
> RUN GDSE /NAME $GDSX, NOWAIT/
-> SCF
-> ADD LINE $GDSX.#LINE1, ACCESSNAME $IOP1
-> ADD SU $GDSX.#LINE1.DEV1
-> ADD SU $GDSX.#LINE1.DEV2
-> START LINE $GDSX.#LINE1
> RUN APPL /NAME $A1, OUT $GDSX.#LINE1.DEV1, NOWAIT/
> RUN APPL /NAME $A2, OUT $GDSX.#LINE1.DEV2, NOWAIT/
When the LINE is started in SCF, GDSX references the access name for the LINE and
opens $IOP1. All devices on the LINE are then available for access. When requester
$A1 runs, GDSX opens SU $DEV1 under LINE1, establishing a thread from $A1
through $GDSX to $IOP1.#DEV1. When requester $A2 runs, GDSX opens SU $DEV2
under LINE1, establishing a thread from $A2 through $GDSX to $IOP1.#DEV2.
The last example can also be configured using ACCESSNAME attributes to specify the
files to be accessed through GDSX:
> PARAM MAXLINES 1
> RUN GDSE /NAME $GDSX, NOWAIT/
-> SCF
-> ADD LINE $GDSX.#LINE1, ACCESSNAME $IOP1
-> ADD SU $GDSX.#LINE1.D1, ACCESSNAME $IOP1.#DEV1
-> ADD SU $GDSX.#LINE1.D2, ACCESSNAME $IOP1.#DEV2
-> START LINE $GDSX.#LINE1
> RUN APPL /NAME $A1, OUT $GDSX.#LINE1.D1, NOWAIT/
> RUN APPL /NAME $A2, OUT $GDSX.#LINE1.D2, NOWAIT/
When the LINE is started in SCF, GDSX opens $IOP1. When requester $A1 runs,
GDSX opens SU D1, establishing a thread from $A1 through $GDSX to $IOP1.#DEV1.
When requester $A2 runs, GDSX opens SU D2, establishing a thread from $A2 through
$GDSX to $IOP1.#DEV2.
Note. SUs may not be added under a LINE unless the LINE is stopped. After starting a LINE,
if you want to add an SU under the LINE, you need to stop the LINE first.