10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sample 3GL ProceduresNote: Addresses returned to OpenROAD from a 3GL procedure should beglobal or static so that they are not out of scope when used in the 4GL.Sample 3GL ProceduresYour OpenROAD development installation contains the following two sample3GL procedures:• A 3GL sample that only contains 3GL statements• An exec 4GL and exec SQL sample that includes 4GL and exec SQLstatements3GL SampleWindowsUNIXThe 3GL sample is located in the %II_SYSTEM%\ingres\w4glsamp\3gldirectory.The 3GL sample is located in the $II_SYSTEM/ingres/w4glsamp/3gldirectory.Consult the readme_OR_3GLsample.txt file for instructions about building thesample.When the sample is running, you can invoke all functions by clicking the CallAll 3GL Procedures button. Or, you can invoke individual functions by selectingthe associated radio fields. A message box displays to the user whether thefunctions were called successfully. This determination is based on checkingboth the return and argument values after the call to ensure that they arecorrect. This capability is built into the sample and does not require you to doany coding.Using 3GL in Your Application 307

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!