Hi,
I'm trying to create a new focus data source to hold the data about who ran the report. Later I can query this datasource to check how many users use this report.
my code is look like this,
-DEFAULT &USERID = 0;
-DEFAULT &NTUSERID = 'Default';
-DEFAULT &USERNAME = 'Default User';
-DEFAULT &RPTNUMBER = 'RPT_USAGE';
-DEFAULT &RPTDESC = 'Default Report';
-DEFAULT &DISPFORMAT = 'HTML';
TABLE FILE RPT_USERS
PRINT USER_NAME
NTUSERID
WHERE NTUSERID EQ '&USERID'
ON TABLE SAVE AS SAVEU1
END
-RUN
-READ SAVEU1 &USERNAME.A100. &NTUSERID.A30.
-RUN
USE CLEAR
END
USE C:\IBI\APPS\TEST\RPTUSRDAT.FOC AS RPTUSRDAT NEW
END
CREATE FILE RPTUSRDAT
-*END
MODIFY FILE RPTUSRDAT
COMPUTE DUMMY/A1=;
COMPUTE CUR_DT_TM/HYYMDS = HGETC(10,CUR_DT_TM);
COMPUTE RECORD_ID/HYYMDm = HGETC(10, 'HYYMDm');
COMPUTE DBUSER_ID/A30 = '&USERID';
COMPUTE NTUSER_ID/A30 = '&NTUSERID';
COMPUTE USER_NAME/A100 = '&USERNAME';
COMPUTE REPORT_NUMBER/A15 = '&RPTNUMBER';
COMPUTE REPORT_DESC/A100 = '&RPTDESC';
COMPUTE RUN_DATE/YYMD = HDATE(CUR_DT_TM, 'YYMD');
COMPUTE RUN_TIME/HHIS = CUR_DT_TM;
COMPUTE DISPLAY_FORMAT/A5 = '&DISPFORMAT';
MATCH RECORD_ID
ON NOMATCH INCLUDE
FIXFORM DUMMY/1
DATA
1
END
USE CLEAR
END
-RUN
but it's giving me error
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: RPTUSRDAT
BYPASSING TO END OF COMMAND
Not sure, where I'm missing. Can anyone helpme out in solve this issue?
WFConsultant
WF 8105M on Win7/Tomcat