Focal Point
[CLOSED] SAVE DATA USING FILEDEF

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

December 15, 2011, 01:39 PM
Kamesh
[CLOSED] SAVE DATA USING FILEDEF
Hi,

I am trying to hold the data in my server to do the report directly against that data. But unfortunately I am not able to store the data and always getting "File doesn't exist" error.

My code will be like


-SET &DIR='\\SERVER\IBI\APPS\BASEAPP';
DOS STATE &DIR.EVAL
-RUN

-IF &RETCODE EQ 0 GOTO DIREXIST;
DOS MD &DIR
-RUN
-DIREXIST

FILEDEF CDSDAT DISK &DIR|CDSDAT.FTM
-RUN

TABLE FILE CAR
PRINT
CAR
BY COUNTRY
ON TABLE HOLD AS CDSDAT
END
-EXIT


Any suggestions/thoughts will be helpful.

Thanks

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


WFConsultant

WF 8105M on Win7/Tomcat
December 15, 2011, 03:11 PM
<FreSte>
Kamesh,

You are missing a backslash between directory and filename.

Change line into :
-SET &DIR='\\SERVER\IBI\APPS\BASEAPP\';

or change this line into :
FILEDEF CDSDAT DISK &DIR|\CDSDAT.FTM


-Fred-
December 16, 2011, 08:00 AM
Kamesh
Fred,

I have that on my original code. It was just a typo error here.

Thanks


WFConsultant

WF 8105M on Win7/Tomcat
December 19, 2011, 12:30 PM
njsden
Is the \\server\path SMB notation allowed in WebFOCUS? Maybe it is, I did not check documentation. When faced with that I try to map a drive letter to it in the reporting server and use X:\path instead.

Anyway, would this alternative perhaps help you?

-SET &DIR='\\SERVER\IBI\APPS\BASEAPP\';

APP MAP MYPATH &DIR
APP HOLDDATA MYPATH
-RUN

TABLE FILE CAR
PRINT
CAR
BY COUNTRY
ON TABLE HOLD AS CDSDAT
END
-RUN

-DOS dir &DIR




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.