If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How to pass Informix database name as parameter in 4JS programmes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-04, 04:55
arvind kumar arvind kumar is offline
Registered User
 
Join Date: Jun 2004
Location: Kinshasa
Posts: 4
How to pass Informix database name as parameter in 4JS programmes

Hi

I am facing some problems with 4JS programmes. I am working on a project, for that I have used 4JS as front-end and Informix 9.2 as back-end. Currently in my project the name of database is hard-code with DATABASE statement in all 4JS programme i.e.

DATABASE bank

In this situation if I am changing the database name then I have to modify all the programmes accordingly .

I am not very expertise in 4JS, So please suggest me how I can pass the database name as parameter or by setting some environment variables like

C:\>SET DATABASE=bank

or any other method so my programmes become flexible to use the database of different names.

Please give me your valuable suggestion.

Thanks and Regards
Arvind Kumar
Reply With Quote
  #2 (permalink)  
Old 10-03-04, 10:47
oxford oxford is offline
Registered User
 
Join Date: Sep 2004
Posts: 6
Post 4J' s

Hi, Joe, my name is Rodney Cruz I'm from Ecuador southamerica, but
right now I' m living in Miami, Flo., I have an Integrated System with over
400 programs and 1200 forms and graphics developed in 4J's, oriented to
Accounting Module and Billing and Part' s Moduless.
This is the tech info.

Ver. Products 4J's & Informix
Version 4J' s 3.10
Version WTK 2.01
Version Informix DB 7.31
Version 4GL 7.30 UD7

The software is allready compiled in 4GL and 4J' s.

I'm interesting in a partnertship with another developer. I have almost
4 weeks in Miami. I talk spanish.

Anl. Rodney Cruz
Reply With Quote
  #3 (permalink)  
Old 10-08-04, 14:54
fetzir fetzir is offline
Registered User
 
Join Date: May 2004
Posts: 2
I haven't used the 4J products yet, but with our RDS system, we simply pass arguments to the program, and capture them within the program be reading the arg_val() set.

For example,entering at our UNIX command line (for an RDS program);

fglgo my_program bank

within our program we define a variable;

let db = arg_val(1)

then run within the program a statement as such;

database db
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On