Batch run doesn't recognize logicals



RE: adm_user account running batch which doesn't recognize "Stuaid" logical

 

When logged into that account (adm_user, pw=2poise1), the logical for Stuaid
is accurate, but when the batch runs, it errors out, as shown here.

 

COMPARE V6.8-01 - Data File Comparison Program              10:52 AM
Copyright (c) 2000, Campus America, Inc.
Data File Name <ADMFIL:ADMLETTER>? ADMFIL:ADMLETTER
Number of pointers in the Pointer file: 1

Does that seem correct <NO>? YES
Data File to Compare Against? ADMFIL:ADMMAIN
?Can't find file or account - Description file DISK$ALPHA_72-1:[ADM_USER
]STUAID.DSC; -Processing virtual field 187 in
USERS1:[NUADM.FILES]ADMMAIN.DSC;
Finished    10:52 AM
%DCL-W-SKPDAT, image data (records not beginning with "$") ignored
 

The login.com file:


$ !
$ IF F$MODE() .EQS. "BATCH" THEN GOTO BATEND    ! Skip user stuff if
Batching.
$ !
$ ! Execute aid login so user can access finaid files
$ @users:[aid]login2
$ !

 

Under this scenario, the AID logicals would not be executed when running in
batch mode, as the check for a batch process causes the login procedure to
skip down to the end of the LOGIN procedure if it is a batch.  This explains
why the STUAID logical is defined in an interactive process, but not in a
batch process.

Modify the file to execute the AID login BEFORE it checks for a
batch process.
 

$ !

$ ! Execute aid login so user can access finaid files

$ @users:[aid]login2

$ !

$ IF F$MODE() .EQS. "BATCH" THEN GOTO BATEND    ! Skip user stuff if Batching.

$ IF F$MODE().NES."INTERACTIVE" THEN GOTO NO_MENU

$ ADMMENU == "@DMS:DMSMENU USERS1:[NUADM.SOURCE]ADMISSIONS_CWA.MCF"

$ @DMS:DMSMENU USERS1:[NUADM.SOURCE]ADMISSIONS_CWA.MCF

$ !

$ NO_MENU:

$ !

$ !LOGOUT

$ BATEND:

$ !