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 > Newbie to Informix db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-11, 01:50
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Newbie to Informix db

Hi

I am new to Informix dbs and would appreciate if you could help me understand how to compile .ACE files to .ARC files?

Like command?

Make? What would the complete syntax be?

I also have some .ACT files. What are these?

Regards
Shajju
Reply With Quote
  #2 (permalink)  
Old 07-12-11, 08:33
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
Haven't worked with ACE reports in many years but I assume you're working with some version of INFORMIX SE (standard engine)?

You can compile ACE reports using the isql editor tool. We don't have SE on any server right now but I'm pretty sure if you login as informix and your environment variables are set correctly you would navigate to the directory with the ACE reports and key in isql & press enter.

You'll be presented with a ring menu and you should choose REPORT. I don't remember what you'll see from this point forward ... it's been too many years ... but you'll see something like EDIT or MODIFY or COMPILE or something, you should be able to figure it out from there.
Reply With Quote
  #3 (permalink)  
Old 07-15-11, 05:40
bigcalm bigcalm is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
There's also a command line tool 'saceprep' that will let you compile ace files to arc files without using isql.
Reply With Quote
  #4 (permalink)  
Old 07-16-11, 01:17
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Thanks for the info guys.

I can navigate to the folder where the .ace, .arc and .act files are present.

I will amend the .ace with the new counters that need to be retreived from the db and then:

type isql (in the same folder) and press enter?

or

type saceprep.ace report name and press enter?

Regards
Shajju
Reply With Quote
  #5 (permalink)  
Old 07-17-11, 01:32
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Would the SACEPREP tool be available /user/bin?

I checked this location but couldn't see it.
Reply With Quote
  #6 (permalink)  
Old 10-03-11, 07:03
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Hi all

Been away for a couple of months.

Am still facing the issue of finding out how to compile ACE reports into ARC files

Could someone please help me with this?

Where would I find this SACEPREP tool?
How exactly would I use isql to compile the ACE report?

Thanks
Shajju
Reply With Quote
  #7 (permalink)  
Old 10-03-11, 11:14
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi shajju,

you probably have a RUNTIME licence of I-SQL and not a DEVELOPPERlicense.
To check this, cd $INFORMIXDIR/etc and check whether you have a file called ISQLRT-cr for Runtime, or ISQL-cr for developpment.

The runtime license does not allow you to compile forms, and reports, but the development license does.

I also have seen some sneaky companies delete or inactivate by any mean the saceprep or fglform ( form compiler)...

Also, in the same directory, you will find the list of (originally ) installed files in the sqlrtfiles for the runtime license, or sqlfiles
for the development license.

If one is missing, someone has deleted it.

Hope this helps.
Reply With Quote
  #8 (permalink)  
Old 10-30-11, 02:28
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Thanks, will do.

Last edited by shajju; 10-30-11 at 04:10.
Reply With Quote
  #9 (permalink)  
Old 10-30-11, 03:04
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Will search and let you know.

Last edited by shajju; 10-30-11 at 04:09.
Reply With Quote
  #10 (permalink)  
Old 10-30-11, 04:01
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
OK I checked INFORMIXDIR...

It's ISQL-cr.

Would you know how to add a new counter (to extract from the Informix database) to the ACE report and then compile it to get the corresponding ARC file?
Would you also know what the .ACT is for?

Last edited by shajju; 10-30-11 at 04:15.
Reply With Quote
  #11 (permalink)  
Old 10-31-11, 05:51
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi shajju.

So you have a development license and you should be able to modify and compile your report.
The basic method is to
1) modify the report source file ( called xxx.ace ) with your best editor
2) compile it with the following command: saceprep xxx.ace
3) if your compile succeeds, you obtain a xxx.arc
4) to run it, sacego xxx

This also can be done with the isql Report menu. You will find the user manual
there

All you want to do is clearly explained.

I'm not sure about the .act extension. And my Isql environment is not ready to run.
As far as I remember, the error files after compile are called xxx.err, although I'm not sure.

Also in the $INFORMIXDIR/demo/sql/en_us/0333/ you will find a number of interesting examples that can help you to achieve your purpose. Look at the *.ace files.

Hopes this helps
Eric
Reply With Quote
  #12 (permalink)  
Old 03-11-12, 03:16
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
Thanks.

I modified the existing ace report with 3 more counters that I need fetching from the Informix database and tried compiling using SACEPREP but got the .err file saying:

# Environment variable INFORMIXSERVER must be set.
# See error number -25560.

AND

# The cursor or statement is not available.
# See error number -404.

Regards
Shajju
Reply With Quote
  #13 (permalink)  
Old 03-11-12, 03:37
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
I also tried using isql but whichever option I selected under Report, I got:

No write permission in current directory.

So I might just stick to using SACEPREP after I work out how to set the environment variable.

Thanks
Reply With Quote
  #14 (permalink)  
Old 03-11-12, 04:44
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi Sahjju,

Quote:
# Environment variable INFORMIXSERVER must be set.
# See error number -25560.
The message is explicit: you really must set the INFORMIXSERVER environment variable.
$INFORMIXSERVER is the variable that identifies to which Informix instance you will connect. It is not possible to Informix if this variable is not set.

Look for the $INFORMIXDIR/etc/$ONCONFIG file, open it and search the DBSERVERNAME parameter value which is the value that you must set for INFORMIXSERVER.

Fix this error first, the second one may disappear after.

As for
Quote:
No write permission in current directory.
you clearly do not have write permissions in the directory you are in.

It is a permission issue that should be resolved by allowing your user to access, read and write in this directory.
Reply With Quote
  #15 (permalink)  
Old 03-11-12, 06:08
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 332
OK thanks. But the thing that confuses me is that I made a copy of an existing ace report, amended it with 3 more counters that I'd like to retrieve from the db and tried to compile it.

So the E.V should already be set. The E.V is normally the db name, right? And that is already specified in the beginning of the file.

Code:
database
   omc_db
end

Last edited by shajju; 03-11-12 at 06:18.
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