I have a CL (call it RUN) that calls multiple CLs. This was done to run several steps that were run manually. Two of these CLs ( STEP ONE and STEP TWO) use an OPNQRYF against the same file. When I called RUN it worked fine interactively but when I submit it through WRKJOBSCDE, STEP TWO errors out on the OPNQRYF saying 'shared open not allowed for query'. Will a RSLRSC in the STEP ONE fix this and why was it OK when I ran it interactively?