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 <[email protected]> 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 [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
