Files open in service programs.

560 pts.
Tags:
AS/400
ILE
Hi Group,

If an RPG program calls a service program that leaves files open,
then the program ends with SETON LR, should the files opened in the
service program remain open, within the job that called the program?

Does RETURN or SETON LR have any affect on Service Program?

Regards,
Rama


Software/Hardware used:
AS/400, ILE

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • CharlieBrowne
    If the calling program does a SETON LR and the Service Program does not, the files opened in the Service Program will remain until the job itself ends.
    62,265 pointsBadges:
    report
  • BigKat

    or at least until the Activation Group the Service Program is in ends

    8,750 pointsBadges:
    report
  • philpl1jb

    So you may want a procedure in the service program to close all files.

     

    54,090 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: