Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling 4gl programs 1

Status
Not open for further replies.

MichelleButler

IS-IT--Management
Apr 5, 2002
73
GB
What is the best way to compile a informx 4gl program. I use r4gl to compile the program and I know that there are command lines also to compile, for example: fglpc <program name>. Does anybody have any good suggestions and example on compiling 4gls.

Many thanks

michelle
 
For this discussion, I'm assuming you're using the Unix version of Informix 4GL. Myself, I've
never liked the i4gl/r4gl interfaces. Too limiting.

One of the strengths of the &quot;C&quot; compiled version of 4GL is you could create make files similar to the same files used with other compiled languages. If you want to see an
example, look at the International Informix user group at:


click on the make.sccs example.

Unfortunately, the RDS version doesn't lend itself to the unix classical make (especially if you want to link in RDS libraries)

(In my world, since I have no 4GL libraries to link in, the classic unix make file works fine.)

However, you can create shell scripts to do your RDS compiling and linking. Basically, you want to fglpc each 4gl source, and concatenonate all the resulting p-code into a new RDS file the runner recognizes.

Generally, this new file has a 4gi extension.

Suppose an example project has 3 files:

main.4gl
file1.4gl
file2.4gl

Here's how you compile and link from the command line:

rm *.4go
fglpc main
fglpc file1
fglpc file2

cat main.4go file1.4go file2.4go > newprog.4gi

Granted, if you have a lot of source files, this might be tedious. In the early 90's, 4gen Software bundled a suite of unix shell scripts with their 4gl code generator product. This suite was elaborate and emulated the unix make, and, in my opinion, it did it well.

I'm not saying you have to go the 4gen way. Let's the 4gen method is one extreme, and my little example above is the other extreme.

(If 4gen is still in business, it operates under the name Endura?)

bottom-line, unless you're willing to invest a little time in setting up unix shell scripts, then you might want to consider staying with i4gl/r4gl. Just my 2 cents.

Regards,


Ed
Schaefer
 
Hi Everyone,

I want to create a Report in i4gl, in the format given below:

&quot;Group Field -1 &quot;
Printing One Row
&quot;Group Field -2 &quot;
Printing More than One Row
&quot;Group Filed -3 &quot;
Printing More than One Row

The problem what I am facing here is, I can't able to print &quot;More than one Row&quot; under the &quot;Group Field-2&quot; and &quot;Group Field-2&quot;. But able to print the first row among the many rows that I want to print, under &quot;Group Field-2&quot; & &quot;Group Field -3&quot;.
Please anyone give me a solution for this. It's VERY URGENT.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top