Skip to main content

[archive] ESQL and EXIT PROGRAM

  • October 23, 2007
  • 10 replies
  • 0 views

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.

10 replies

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
It is always good to see some code. Can you provide example code that illustrates the problem?

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
It is always good to see some code. Can you provide example code that illustrates the problem?

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
It is always good to see some code. Can you provide example code that illustrates the problem?

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
It is always good to see some code. Can you provide example code that illustrates the problem?


I have used the acucorp example but i have put "exit program" before "stop run" because it is called by another program.

If i comment the last accept omitted the program do all required instruction into database but when return the control to calling program it return in unexpected position.

So : I must put the ACCEPT OMITTED (BEFORE TIME 1 for no keyboard request) before "exit program" in called program.

Thanks so much

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
It is always good to see some code. Can you provide example code that illustrates the problem?


I have used the acucorp example but i have put "exit program" before "stop run" because it is called by another program.

If i comment the last accept omitted the program do all required instruction into database but when return the control to calling program it return in unexpected position.

So : I must put the ACCEPT OMITTED (BEFORE TIME 1 for no keyboard request) before "exit program" in called program.

Thanks so much

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
The provided example shows not ACCEPT OMITTED BEFORE TIME, nor is there any EXIT PROGRAM before the STOP RUN.

I notice there is a mixture of SECTION and paragraph, I'd suggest for consistency, you go for one, not both styles.

Also, rather than doing a mixture of EXIT PROGRAM and STOP RUN, why not just resolve to GOBACK (except for error conditions, where you clearly want to halt anyway).

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
The provided example shows not ACCEPT OMITTED BEFORE TIME, nor is there any EXIT PROGRAM before the STOP RUN.

I notice there is a mixture of SECTION and paragraph, I'd suggest for consistency, you go for one, not both styles.

Also, rather than doing a mixture of EXIT PROGRAM and STOP RUN, why not just resolve to GOBACK (except for error conditions, where you clearly want to halt anyway).

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
I try your suggestion,but it doesn't seem to work..
I try to post another example,maybe it would be easier to understand.
the first program PROVASQL.COB call the other and when it comes back show four lines on the screen.
If we use ACCEPT OMITTED BEFORE TIME in the first program it's all OK,but if we take it away(as it's in the example)we have an error when the focus come back to the first program!
I hope i could explain the problem.
thanks

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
I try your suggestion,but it doesn't seem to work..
I try to post another example,maybe it would be easier to understand.
the first program PROVASQL.COB call the other and when it comes back show four lines on the screen.
If we use ACCEPT OMITTED BEFORE TIME in the first program it's all OK,but if we take it away(as it's in the example)we have an error when the focus come back to the first program!
I hope i could explain the problem.
thanks

[Migrated content. Thread originally posted on 22 October 2007]

This is my first time.

I'm using AcuSQL and i have this problem :

If i don't insert "accept omitted" before "exit program" i have a unexpected return at calling program with bad error.

Sorry for my english.
I try your suggestion,but it doesn't seem to work..
I try to post another example,maybe it would be easier to understand.
the first program PROVASQL.COB call the other and when it comes back show four lines on the screen.
If we use ACCEPT OMITTED BEFORE TIME in the first program it's all OK,but if we take it away(as it's in the example)we have an error when the focus come back to the first program!
I hope i could explain the problem.
thanks