T24: Error returned at all VERSION routine levels

2,033 views
Skip to first unread message

Despina

unread,
Jun 5, 2010, 3:17:29 AM6/5/10
to jBASE
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

VK

unread,
Jun 8, 2010, 2:35:04 AM6/8/10
to jBASE
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

Igor Micev

unread,
Jun 8, 2010, 11:27:42 AM6/8/10
to jb...@googlegroups.com
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



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



--
Igor Micev
Reply all
Reply to author
Forward
0 new messages