File pointer is being reset to the top in a CLP program

30 pts.
Tags:
CLP
CRTDUPOBJ
DSPOBJD
File Pointer
RCVF
I am processing the *OUTFILE from a DSPOBJD command. Trying to create a logical file. When the CRTDUPOBJ fails the program loops to the RCVF command but the same record is being read again...WHY??
ASKED: September 24, 2008  4:44 PM
UPDATED: September 26, 2008  3:41 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

We acutally found the problem. The program called a small CL to send a message to the user……the program to send the message was 5 lines long, PGM, 2 DCL, a command statement, and the ENDPGM. We added a another DCL statement and the problem was corrected.

Discuss This Question: 4  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    Need to see the code ..
    48,575 pointsBadges:
    report
  • Gilly400
    Hi, That's a very strange solution to a strange problem. Are you up to date with PTF's? Sounds like a bug... Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • RotoMan
    I agree.....NEVER see anything like before. We are on V5R4 and I believe we are up to date on PTF's (my hardware area tracks that). We are sending the code of the two programs to IBM to review.
    30 pointsBadges:
    report
  • philpl1jb
    Sounds like the small cl program was erroring out Returning to the parent program with an error If the parent program had a global MONMSG that sent it back into the loop below the RCVF it would again attempt to process the data from the first record.
    48,575 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following