- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Informix- moving a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 12:40 AM
тАО09-07-2006 12:40 AM
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 12:50 AM
тАО09-07-2006 12:50 AM
Re: Informix- moving a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 01:02 AM
тАО09-07-2006 01:02 AM
Re: Informix- moving a file
The other method is to generate the correct filename within the program using TODAY/CURRENT keywords into a variable and start the report to the variable name.
Be aware of security implications of using start report to pipe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 01:06 AM
тАО09-07-2006 01:06 AM
Re: Informix- moving a file
you could use a stored procedure which uses the "SYSTEM" command.
This procedure would then be called via:
EXECUTE PROCEDURE
Further reading (Can not vouch for the source):
http://docs.rinet.ru/InforSmes/index.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 01:35 AM
тАО09-07-2006 01:35 AM
Re: Informix- moving a file
So, by using the run command, you mean that I could do something like:
run mv report.out $HOME/report.out.current year to minute
in the 4gl code?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 01:51 AM
тАО09-07-2006 01:51 AM
SolutionDEFINE runcmd char(80),
returncode int
LET runcmd = "mv report.out $HOME/report.out.", current.year to minute
RUN runcmd RETURNING returncode
I don't have an Informix environment to test on at the moment, but that should be the general gist of the syntax.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 02:03 AM
тАО09-07-2006 02:03 AM
Re: Informix- moving a file
for 4gl example of running commands please see:
http://aubit4gl.sourceforge.net/aubit4gldoc/manual/html/4GLcoding.html#Reading/Writing%20Outside%204GL
Section
"C Function Calls and "RUN" statements"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 03:47 AM
тАО09-07-2006 03:47 AM