Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Exporting in Excel format gives Foc227, Foc205, Foc003.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Exporting in Excel format gives Foc227, Foc205, Foc003.
 Login/Join
 
Member
posted
Hey guys,

I am exporting the report in Excel format, but in our TEST env, it works fine, however in our UAT and PROD env, it errors out.

Here are the error messages.

(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: tmp_cmd
(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: tmp_cols
.
.
.
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: NEWFILE
0 ERROR AT OR NEAR LINE 1 IN PROCEDURE tmp_colsFOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: COL000000001
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


Here is the area of code where its erroring out.

TABLE FILE HOLD
PRINT
COMPUTE SEQ/A9 = EDIT(LIST); NOPRINT
COMPUTE COLNAME/A255= 'COL' | SEQ;
BY LIST NOPRINT
ON TABLE NOTOTAL
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS tmp_cols
END

-* Looks like this: -WRITE NEWFILE FIELDNAME=COL000000008, TITLE='Mar, 2011', USAGE=I11, ACTUAL=A11,$
TABLE FILE HOLD
PRINT
COMPUTE SEQ/A9 = EDIT(LIST); NOPRINT
COMPUTE CMDLINE/A255= '-WRITE NEWFILE FIELDNAME=COL' | SEQ |', TITLE=''' | DAT4_TITLE | ''', USAGE=I11, ACTUAL=A11,$';
BY LIST NOPRINT
ON TABLE NOTOTAL
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS tmp_cmd
END
-Run

-* create MFD for transposed data structure called NEWFILE.
-SET &MAS_File = '&IBI_APP_ROOT.EVAL/NEWFILE.mas';
APP FILEDEF NEWFILE DISK &MAS_File.EVAL
-RUN

-WRITE NEWFILE FILENAME=NEWFILE, SUFFIX=FIX,$
-WRITE NEWFILE SEGNAME=ONE, SEGTYPE=S0,$
-WRITE NEWFILE FIELDNAME=SubjectStatus, TITLE='Subject Status', USAGE=A50, ACTUAL=A50,$
-INCLUDE tmp_cmd
FILEDEF NEWFILE CLEAR
-RUN

-* create transposed data file.
TABLE FILE MONTHLY_DATA
SUM TOTALCOUNT/I11
BY SubjectStatus
ACROSS DAT3YY NOPRINT ACROSS DAT1M NOPRINT
ACROSS DAT4_TITLE
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SAVE AS NEWFILE
END

-RUN

I can't seem to figure out the cause of the issue.
Any help is appreciated.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: May 03, 2013Report This Post
Virtuoso
posted Hide Post
It sounds like a write-permissions issue.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
I would suggest changing -Run to -RUN as a start.

Also if you break the flow at the creation of tmp_cols and check to see if the file is created.

e.g.
-RUN
! DIR
-EXIT

Are you using APP HOLD ?


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
So I've narrowed down on the location of the error.

When I comment out -INCLUDE temp_cols and -INCLUDE tmp_cmd,
then it works (and obviously with less data outputed)

So as j.gross said, it might not be writing the temp master files.
To Waz, I am not running App hold.

Where does the temp master files get written to so I can check if it gets created or not?

Thanks for help.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: May 03, 2013Report This Post
Expert
posted Hide Post
That depends on your settings.

Default is for the mas and ftm files to be created in the edatemp tsnnnnnnn directory.

But this can be overridden with APP HOLD.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
So this is what I get Waz,

? HOLD tmp_cols
! DIR
-EXIT
0 NUMBER OF RECORDS IN TABLE= 65 LINES= 13
0 NUMBER OF RECORDS IN TABLE= 13 LINES= 13
0 NUMBER OF RECORDS IN TABLE= 13 LINES= 13
0DEFINITION OF HOLD FILE: tmp_cols
0FIELDNAME ALIAS FORMAT
COLNAME E01 A255
sh: DIR: not found.

so the hold "tmp_cols" does get created,
but when using -INCLUDE tmp_cols, it does not find it.
I don't have in depth knowledge with WebFocus, do you guys know what the cause might be?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: May 03, 2013Report This Post
Expert
posted Hide Post
Are you on Linux or Unix ?

Your signature states Windows


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Our Reporting Server is on AIX
Managed Reporting is on Windows


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: May 03, 2013Report This Post
Expert
posted Hide Post
OK, then use ! ls -al instead of ! DIR

This will list the contents of the edatemp location, the default locations for temporary files.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Okay, this is what I got. It seems like the files are there in the temp location.
So I guess -INCLUDE is not looking at the right location?
hmm..

ON TABLE HOLD AS tmp_cols
END
? HOLD tmp_cols
! ls -al
-EXIT
0 NUMBER OF RECORDS IN TABLE= 65 LINES= 13
0 NUMBER OF RECORDS IN TABLE= 13 LINES= 13
0 NUMBER OF RECORDS IN TABLE= 13 LINES= 13
0DEFINITION OF HOLD FILE: tmp_cols
0FIELDNAME ALIAS FORMAT
COLNAME E01 A255
total 256
drwxr-xr-x 2 webfocus oinstall 4096 10 Jul 23:50 .
drwxrwxrwt 28 webfocus oinstall 4096 10 Jul 23:50 ..
-rw-r--r-- 1 webfocus oinstall 208 10 Jul 23:50 hold.ftm
-rw-r--r-- 1 webfocus oinstall 184 10 Jul 23:50 hold.mas
-rw-r--r-- 1 webfocus oinstall 24752 10 Jul 23:50 spdata.ftm
-rw-r--r-- 1 webfocus oinstall 1116 10 Jul 23:50 spdata.mas
-rwxr-xr-x 1 webfocus oinstall 0 10 Jul 23:50 stderr.log
-rwxr-xr-x 1 webfocus oinstall 0 10 Jul 23:50 stdout.log
-rw-r--r-- 1 webfocus oinstall 51 10 Jul 23:50 studynm.ftm
-rw-r--r-- 1 webfocus oinstall 0 10 Jul 23:50 sysh.tmp
-rw-r--r-- 1 webfocus oinstall 3328 10 Jul 23:50 tmp_cols.ftm
-rw-r--r-- 1 webfocus oinstall 133 10 Jul 23:50 tmp_cols.mas


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: May 03, 2013Report This Post
Expert
posted Hide Post
The next step is to start moving the break point down the code and see what happens.

Also after the creation of the master NEWFILE, add a ! cat &MAS_File, and see what was written.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
In my experience, -INCLUDE is not able to use files from EDATEMP. I don't know why.

Perhaps it's just a matter of setting the correct PATH env. variable somewhere.
Perhaps you need to specify the full path for -INCLUDE to use such a file.
Or perhaps dialog manager is just too simple and you need to store the files within the APP directory that you're working in (which breaks concurrency for such files, BTW) before dialog manager can use them.

Most likely, we're both missing a relevant piece of information to make dialog manager work correctly with files in EDATEMP. It would be nice if WF was set up like that by default, though...


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Exporting in Excel format gives Foc227, Foc205, Foc003.

Copyright © 1996-2020 Information Builders