ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

File pointer - does it automatically reset?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File pointer - does it automatically reset?

    I know this is probably a basic question, but I don't remember exactly how this works.

    I do a SBMJOB on CL. Within that CL, I call 2 different programs which both use the same file. Does the file pointer reset automatically before the 2nd call is made or do I need to do a SETLL on the 2nd program?

    Thanks,
    David


  • #2
    As far as I know, if your doing dynamic calls from within a CL program _and_ you are not performing any special overrides within the CL program, you will need to start at the top of the file/key to position yourself correctly.

    Comment


    • UserName10
      UserName10 commented
      Editing a comment
      I think that's backwards. Without any overrides the second program has it's own ODP.

  • #3
    thank you

    Comment

    Working...
    X