I am new to IMS and here is my problem.
From an exisiting simple cobol program I want to call an existing IMS sub program (subprogram exists, but call to this subprogram from this main program doesn't exist before) which retrieves the required data from an IMS database. Already PSB is defined for the subprogram and it is being used by multiple programs in production.
In my JCL, now I am invoking the main program from an IMS utility as it is calling an IMS subprogram. Previously as it was a simple cobol program, it was invoked through EXEC PGM command in JCL.
Can I go ahead and use the same PSB of sub program for passing the PSB name to IMS utility while invoking the main program. Do we need to associate this main program to the existing PSB???
Please suggest me on this and also if you see something wrong in my approach......