Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FLIB with System/36 Environment

Status
Not open for further replies.

asplus

Instructor
Oct 11, 2002
16
Hi all,

We are experiencing the following:

We have two different Companies running on our AS/400. They use the same software which has been duplicated with a few exceptions (Hard coded constants). They also have their own sets of files. Company 1 has their files in QS36F while company 2 stores theirs in CMP2LIB. Everything works fine interactively by using FLIB to refer to CMP2LIB for company 2 instead of QS36F. If we do STRS36PRC and the first statement of the called procedure is an FLIB pointing to CMP2LIB, the right file set is accessed. But for some reason, submitting a job with SBMJOB that contains the same statements as above, the FLIB in the called procedure is ignored and files from QS36F are accessed instead of CMP2LIB. Changing the S/36 environment with CHGS36A file library parameter to CMP2LIB would solve the problem of Company 2 but cause one to Company 1.

Did anybody go through the same problem?

Bernard Le Jour
AS Plus Informatique Inc.
 
Hi - In the S/36 OCL procedure called by the STRS36PRC try using a FILELIB OCL statement like:

// LOAD PROGA
// FILELIB NAME-CMP2LIB
// FILE NAME-CMP2FIL1
// FILE NAME-CMP2FIL2
// FILELIB NAME-QS36F
// FILE NAME-CMP1FIL
// RUN

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top