Hi,

In INPUT.RTN and AUTH.RTN routines you can also use TEXT combining with
CALL STORE.OVERRIDE
CALL REM
CALL OVE
and
V$ERROR = 1
MESSAGE = "ERROR"

Haven't tried for AFTER.UNAU.RTN and BEFORE.AUTH.RTN

Regards
IM



On Tue, Jun 8, 2010 at 8:35 AM, VK <kzm...@yahoo.com> wrote:

> Hi,
> take care in playing with MESSAGE and V$ERROR thingies. Normally to
> raise an error you only have to populate some vars (like E, TEXT or
> ETEXT) and make the appropriate CALL. And - it works differently in
> different releases.
>
> What I know is OK (tested on R7):
>
> * INPUT rtn
> AF = 1  ;* position where error appears
> ETEXT = 'EB-KZM.ERR'  ;* code from EB.ERROR or just a message
> CALL STORE.END.ERROR
>
> * aUTH RTN
> E = 'EB-KZM.ERR'
>
> * Check.rec.rtn
> E = 'EB-KZM.ERR'
>
> * Validation
> ETEXT = 'EB-KZM.ERR'
>
> Other types - haven't used so far - hadn't need.
>
> Also - why would you like to "stop committing" in AUT.NEW.CONTENT
> routine? It's only to default a field. If you think you need to
> prevent user to enter a record, use CHECK.REC.RTN for that.
>
> VK
>
> On Jun 5, 11:17 am, Despina <despinahape...@hotmail.com> wrote:
> > Hi all,
> >
> > I would like to find out how to prevent commit at
> > INPUT.ROUTINE,
> > AFTER.UNAU.RTN,
> > BEFORE.AUTH.RTN and
> > AUTH.ROUTINE level.
> >
> > That is, I know that at ID.RTN level the followings prevent opening
> > the record:
> > E = 'error message'
> > CALL ERR
> > MESSAGE = 'REPEAT'
> > V$ERROR = 1
> >
> > at AUT.NEW.CONTENT level the same
> > E = 'error message'
> > CALL ERR
> > MESSAGE = 'REPEAT'
> > V$ERROR = 1
> >
> > Also at CHECK.REC.RTN level tha same
> > E = 'error message'
> > CALL ERR
> > MESSAGE = 'REPEAT'
> > V$ERROR = 1
> >
> > At VALIDATION.RTN
> > ETEXT = '...'
> >
> > Thanks a lot
> > Despina
>
> --
> Please read the posting guidelines at:
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
>
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>



-- 
Igor Micev

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to