Focal Point
Accessing UNIX flat file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/2761075182

April 23, 2008, 11:20 AM
Balram
Accessing UNIX flat file
How can I access a flat file that resides on a UNIX file system?

My DS is on a Windows 2000 server.


7.6.4/Windows 2k/
April 23, 2008, 12:47 PM
Leah
Don't know the how to do, but you would need to have the UNIX file area defined to 'a drive' accessable to the windows server would be my thought.


Leah
April 23, 2008, 04:47 PM
BarbaraA
Hi,

I think that unless you can make it look like a regular DOS file to Windows, you will need to have a sub server on UNIX to access it. The only other thing I could see would be to FTP it but you probably don't want to do that.


WF Reporting Server 71x, 76x
April 24, 2008, 09:34 AM
PBrightwell
You need a data adapter. If you have that it will be configured on the admin console.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
April 25, 2008, 11:10 AM
Ganesh Iyer
The ftp listener is probably the easiest way to do this. We have another option called managed file transfer, that can be used to extract files over ssh or sftp


iWay 55 SM SP2
May 02, 2008, 10:24 AM
Balram
Thanks for the Inputs.

The UNIX team is setting up SAMBA and creating a share that maps to the folder on the UNIX file system. This will let me to create a map on the reporting server to the folder on the UNIX file system.

I will then create an ODBC DSN and an ODBC adapter in the reporting server to access the file.

Keeping my fingers crossed.... I'll post an update later with the results.


7.6.4/Windows 2k/
December 02, 2008, 11:34 AM
mtguy
Hi,
I assume the webfocus instance is installed under the same UNIX box and you have installed the ftp client in this Unix box too.
1)Setup an ftp account in Win2000 machine .
2)Write in the unix box a shell script and put it in WebFocus instance
folder .

by example : /your_webfocus_folder_instance/tmp/send.sh

The send.sh file content will follow

#!/usr/bin/ksh
ftp -n "win2000machine" <user "ftpuser_name" "ftp_user_password"
bin
put "tobesend.txt"
bye

3) In your webfocus fex after you produce tobesend.txt , write this line:
UNIX /your_webfocus_folder_instance/tmp/send.sh

I hope this help !

Cheers,
MtGuy

This message has been edited. Last edited by: mtguy,


WF 7.6.2 , iWay 5.5 , Sun Unix , Windows XP , .NET , Oracle , SQL Server and more
December 03, 2008, 03:33 PM
Waz
Balram, we have samba here, so we can access the unix files from the PC.

But why are you using ODBC to access a flat file ?

Just create a master that reads it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!