Re: PROC exit



On Apr 26, 2:16 am, Scott Ballinger <scott.ballin...@xxxxxxxxx> wrote:
Does anyone have a suggestion on how to abort a proc (or D3 macro)
from a basic program? Here is an example:

1 pq
2 o this is part one
3 h run bp myprog
4 p
5 o this is part two

When I run this proc, I want myprog to prevent (under some
circumstances) the calling proc from continuing, i.e. so that I don't
see the "part two" message. For example: myprog could procwrite
something and the calling proc could test for it and then exit; but I
am hoping for something that won't mess with the proc buffers, like a
user exit or some other command. (D3/linux 7.5)

Thanks,
/Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006

DEATH TO PROCs!!

Why not just re-write & have MYPROG go & run/write the rest of the
PROC if it needs to --> sounds like it is a control point anyway!


.



Relevant Pages

  • Re: PROC exit
    ... Scott Ballinger wrote in ... When I run this proc, I want myprog to prevent (under some ... user exit or some other command. ...
    (comp.databases.pick)
  • PROC exit
    ... Does anyone have a suggestion on how to abort a proc ... I want myprog to prevent (under some ... circumstances) the calling proc from continuing, ... user exit or some other command. ...
    (comp.databases.pick)
  • Re: PROC exit
    ... "Scott Ballinger" wrote in message ... I want myprog to prevent (under some ... circumstances) the calling proc from continuing, ... user exit or some other command. ...
    (comp.databases.pick)
  • Re: RAISERROR Behaviour
    ... Paul ... > number to the calling proc: ... > CREATE PROC B ... > @P1 int, ...
    (microsoft.public.sqlserver.programming)
  • return -code return
    ... A return -code return in a proc in a proc causes the calling proc ... GERBILS ...
    (comp.lang.tcl)