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     ( Solved ) Again I need help with flatfiles

Read-Only Read-Only Topic
Go
Search
Notify
Tools
( Solved ) Again I need help with flatfiles
 Login/Join
 
Gold member
posted
This is my second try at flatfile and i got a different error

Here is the detail

Master file

EDASERVE - Applications - baseapp - Master Files

plan2010.mas

FILENAME=pln2010, SUFFIX=COM
SEGMENT=BASE, SEGTYPE=S1, $
FIELDNAME=CONORM, ALIAS=F01, USAGE=A2, $
FIELDNAME=YEARRM, ALIAS=F02, USAGE=A4, $
FIELDNAME=PERIODRM, ALIAS=F03, USAGE=A2, $
FIELDNAME=SLMNPL1, ALIAS=F04, USAGE=A6, $
FIELDNAME=SLMNPL2, ALIAS=F05, USAGE=A8, $
FIELDNAME=ITDVPL1, ALIAS=F06, USAGE=A9, $
FIELDNAME=ITDVPL2, ALIAS=F07, USAGE=A15, $
FIELDNAME=AMOUNT01, ALIAS=F08, USAGE=P25.9, $

Text file:

EDASERVE - Applications - baseapp - Other

pln2010.txt

'01','2010','01','EXPORT','EXPORT','SBEXPORT','SB',0
'01','2010','01','EXPORT','EXPORT','SBEXPORT','SB',0
'01','2010','01','EXPORT','EXPORT','SFEXPORT','SLIDEFASTENER',16000.00731
'01','2010','01','EXPORT','EXPORT','SFEXPORT','SLIDEFASTENER',0
'01','2010','01','EXPORT','EXPORT','SFEXPORT','SLIDEFASTENER',69000.00001
'01','2010','01','EXPORT','EXPORT','SFEXPORT','SLIDEFASTENER',0
'01','2010','01','EXPORT','EXPORT','SBEXPORT','SB',0
'01','2010','01','EXPORT','EXPORT','SFEXPORT','SLIDEFASTENER',37000
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',210.525191
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',89.124265
'01','2010','01','OTHERS','MONTREAL','SBEXPORT','SB',3839.02725
'01','2010','01','OTHERS','MONTREAL','SBEXPORT','SB',9290.157861
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',1163.177485
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',15.159987
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',0
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',132.806614
'01','2010','01','OTHERS','MONTREAL','SBEXPORT','SB',3335.044892
'01','2010','01','OTHERS','MONTREAL','OTHERS','TP',52.357666

Managed Reporting - Domains - Test - Standard Reports - WEEKLYSP -FLATTEST

APP HOLD baseapp
APP FILEDEF PLAN2010 DISK baseapp/Pln2010.txt
TABLE FILE PLAN2010
SUM
AMOUNT01
BY CONORM
BY YEARRM
BY PERIODRM
BY SLMNPL1
BY ITDVPL1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,

$

Here is the result

(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0

I tried with 1 field in masterfile and '01' inthe text file only 1 line,
I tries removing the commas, making fielsd usage bigger,
Change COM to FIX

Nothing is working.

I know it is probably something small but I can't find it
Can someone tell me what I'm doing wrong

Thank you in advance

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


7.6. / Win 7 / Excel
 
Posts: 56 | Location: St-Laurent QC Canada | Registered: February 04, 2009Report This Post
Expert
posted Hide Post
If you can edit the flat file, try adding
, $
at the end of each line.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Documentation:

Describing Data With WebFOCUS Language > Describing a Sequential, VSAM, or ISAM Data Source


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thank you for the information and the refference to read

Realy appreciated

Raymond.


7.6. / Win 7 / Excel
 
Posts: 56 | Location: St-Laurent QC Canada | Registered: February 04, 2009Report This Post
Expert
posted Hide Post
You don't need to add ",$", just add "SET PCOMMA=ON"


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     ( Solved ) Again I need help with flatfiles

Copyright © 1996-2020 Information Builders