Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
v harinath — — source: Informix-list mailing list archive (1991-1998)
Hello informixusers,
I have few questions on informix stored procedures.
Q : 1
------
I am writing a stored procedure to be called from INFORMIX-4GL. Here is
the piece of code for creating a procedure.
May I know, how to call from a 4GL program ?
______________________________CODE STARTS HERE_______________________________
DROP PROCEDURE check_user;CREATE PROCEDURE check_user(plo_user_name CHAR(8)) RETURNING SMALLINT;DEFINE plo_users SMALLINT;
SELECT count(*) INTO plo_users FROM security
WHERE user_name = plo_user_name;
IF plo_users = 0 THEN
RETURN 0
ELSE
RETURN plo_users
END IF
END PROCEDURE;
______________________________CODE ENDS HERE__________________________________
Q.2
---
To add on , How to get value of the environment variable inside a stored
procedure ?
Thanks in advance,
HARINATH VENKATASUBBIAH
PSI DATA SYSTEMS,
BANGALORE INDIA
e-mail : hari@psi.ernet.in
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.