1834447 Members
2343 Online
110067 Solutions
New Discussion

4GL doubt

 
Juan Chipoco
Contributor

4GL doubt

Greetings
Hi friends
I've never programmed in 4GL but in my job I have a problem about it.I use a HP9000 running HP/UX 10x.
My question:
Is possible to run shell scripts inside 4GL?
Can i use environment variables into 4GL?

If there is a good manual? Can u send me the link?

Thanks a lot

Juan Chipoco
Sorry for my english
Juan Chipoco
3 REPLIES 3
H.Merijn Brand (procura
Honored Contributor

Re: 4GL doubt

*WHAT* 4gl? I'm using ACCELL/SQL which does not support embedding shells, but it /does/ support system calls and custom C-hooks (including PCRE :)). It also supports the 'getenv$ ()' function, which gives me access to environment values.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Bernd Dittmar
Advisor

Re: 4GL doubt

Hi Juan,
you can call shell commands from 4GL.

For example:

function convert.file()
{
long ret
ret=shell("ux2dos /path/file > /path/newfile", 64)
}


The above comand converts file from UX to newfile in DOS format.

I use this functionality in BaaN IV 4GL Development Environment.
BaaN IV on HP-UX
Bernd Dittmar
Advisor

Re: 4GL doubt

Hi Juan,
you can call shell commands from 4GL.

For example:

function convert.file()
{
long ret
ret=shell("ux2dos /path/file > /path/newfile", 64)
}


The above comand converts file from UX to newfile in DOS format.

I use this functionality in BaaN IV 4GL Development Environment.
BaaN IV on HP-UX