×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Perform Until Exit

Perform Until Exit

Perform Until Exit

(OP)
I have some code that compiles fine in ISCobol and MFCobol. However, it does not compile for ACUCobol.

Wondering if someone might have a suggestion on how I could get it coded for ACUCobol.

The compile error says "identifier expected, EXIT found"

perform until exit
read arc1 next
at end
exit perform
not at end
display counter
end-read
if (st not = "00" and
st not = "10")
move "Y" to w-err-sw
exit perform
else
continue
end-if
add 1 to counter
end-perform.


Thank you very much for your expertise

RE: Perform Until Exit

Try

CODE --> COBOL

perform until "A" = "B" 

Tom Morrison
Consultant

RE: Perform Until Exit

(OP)
Thank you very much for the input.
The compiler does not allow for the statement I tried.....so...
The A=B code is similar to what was there previously (1=2) but that had the exposure of an infinite loop (which actually happened and requires different code.

Any other thought on how that section of code could be done?

RE: Perform Until Exit

Quote (klophockey)

but that had the exposure of an infinite loop

PERFORM UNTIL EXIT also requires some statement to exit the perform (EXIT PERFORM or STOP RUN or GO TO). So, if you had an infinite loop problem before, you will still have it with UNTIL EXIT.

Tom Morrison
Consultant

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close