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     Synonym: Delimited flat file records cut short

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Synonym: Delimited flat file records cut short
 Login/Join
 
Member
posted
I am having a problem with all the records displaying in a report when I create a synonym off a Delimited Flat File (.csv). I am able to create the synonym without a problem, but when I run the report it is only showing 28 of the 392 records.
All the records are in the file because if I create the synonym on the same file, only as "TAB" delimited instead of .csv, all the data appears. The only problem with this is that all the data comes over in a single field.
Has anyone experienced anything similar to this?

Thanks,

Rob


WebFOCUS 716
Linux Kernel-2.6.9 x86_64 64bit
Excel, PDF, HTML, Active Reports, Visual Discovery
 
Posts: 14 | Location: Bethesda, MD | Registered: June 01, 2007Report This Post
Master
posted Hide Post
Does any of your data include single or double quote marks (or apostrophes)? Are your fields the same size for all records? Do you have an lrecl on the filedef? Do you have any missing fields?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
I'm going to take a guess and say if you are trying to write a synonym (aka Master File Description (MFD)) for a comma separated file, make sure there are no commas in your data.

Just a thought.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Thanks for the quick response Pat and Mickey! To give you a bit of background:
We have SQL Server 2k and Oracle databases...our adapter is for Oracle. I am taking data from our SQL Server and pulling it out as a .csv. There are no quotes or commas in the data itself. The field sizes are not uniform (some A34, A4, A12...they are all text, no numbers) and there ARE some fields with missing data. Pat - I am not familar with Irecl on the filedef.
The file itself looks perfect in a report with the exception of it only displaying 28 of the 392 rows.

Thank you both for your help.

Rob


WebFOCUS 716
Linux Kernel-2.6.9 x86_64 64bit
Excel, PDF, HTML, Active Reports, Visual Discovery
 
Posts: 14 | Location: Bethesda, MD | Registered: June 01, 2007Report This Post
Virtuoso
posted Hide Post
You will need to do some good old fashion debugging here.

The first thing I would check is to see if the records you are getting are the first 28 or are random from the file.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Hi Mickey,

Yes, the records being displayed are the first 28, not random. I'll look over the text file for any anomalies.

The master file looks like this, if it's of any use....

FILENAME=MASTERFILE, SUFFIX=DFIX ,
DATASET=/data/data01/ibi/apps/sampleapp/masterfile.txt, $
SEGMENT=MASTERFILE, SEGTYPE=S0, $
FIELDNAME=FIELD_1, ALIAS= , USAGE=A34, ACTUAL=A34, $
FIELDNAME=FIELD_2, ALIAS= , USAGE=A4, ACTUAL=A4, $
FIELDNAME=FIELD_3, ALIAS= , USAGE=A12, ACTUAL=A12, $
FIELDNAME=FIELD_4, ALIAS= , USAGE=A15, ACTUAL=A15, $
FIELDNAME=FIELD_5, ALIAS= , USAGE=A30, ACTUAL=A30, $
FIELDNAME=FIELD_6, ALIAS= , USAGE=A17, ACTUAL=A17, $
FIELDNAME=FIELD_7, ALIAS= , USAGE=A14, ACTUAL=A14, $
FIELDNAME=FIELD_8, ALIAS= , USAGE=A10, ACTUAL=A10, $
FIELDNAME=FIELD_9, ALIAS= , USAGE=MDYY, ACTUAL=A10, $
FIELDNAME=FIELD_10, ALIAS= , USAGE=A17, ACTUAL=A17, $
FIELDNAME=FIELD_11, ALIAS= , USAGE=A9, ACTUAL=A9, $
FIELDNAME=DELIMITER, ALIAS=',', USAGE=A1, ACTUAL=A1, $


Thanks again,

Rob


WebFOCUS 716
Linux Kernel-2.6.9 x86_64 64bit
Excel, PDF, HTML, Active Reports, Visual Discovery
 
Posts: 14 | Location: Bethesda, MD | Registered: June 01, 2007Report This Post
Virtuoso
posted Hide Post
Rob

Try using the MISSING=ON attribute in the mfd.

FIELDNAME=FIELD_1, ALIAS= , USAGE=A34, ACTUAL=A34, MISSING=ON, $


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
Rob,

Could you post a few records between CODE tags?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
quote:
We have SQL Server 2k and Oracle databases...our adapter is for Oracle. I am taking data from our SQL Server and pulling it out as a .csv.

Is there a reason for holding the data as a .csv file? Is your file fixed and .txt or CVS?

FILENAME=MASTERFILE, SUFFIX=DFIX ,
DATASET=/data/data01/ibi/apps/sampleapp/masterfile..txt, $


This may be legitimate, but MDYY is a "SMART DATE" and A10 implies gregorian with the slashes.
FIELDNAME=FIELD_9, ALIAS= , USAGE=MDYY, ACTUAL=A10, $

FIELDNAME=DELIMITER, ALIAS=',', USAGE=A1, ACTUAL=A1, $
Does the DELIMITER field actually exist in the data or is this a defined field? Try changing the ALIAS to CMMA. An ALIAS is an alternate name not a value.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thank you all for your help with this. I called tech support and through the traces it was determined that the field sizes were not compatible with the data in the next field (FOC1271)...meaning that it showed records 1-28, but in record 29 the address was larger than the specified field size. I adjusted the all the field sizes and all the data now appears.

===============================

Original Masterfile (only showed records 1 - 28):

FILENAME=MASTERFILE, SUFFIX=DFIX ,
DATASET=/data/data01/ibi/apps/sampleapp/masterfile.txt, $
SEGMENT=MASTERFILE, SEGTYPE=S0, $
FIELDNAME=FIELD_1, ALIAS= , USAGE=A34, ACTUAL=A34, $
FIELDNAME=FIELD_2, ALIAS= , USAGE=A4, ACTUAL=A4, $
FIELDNAME=FIELD_3, ALIAS= , USAGE=A12, ACTUAL=A12, $
FIELDNAME=FIELD_4, ALIAS= , USAGE=A15, ACTUAL=A15, $
FIELDNAME=FIELD_5, ALIAS= , USAGE=A30, ACTUAL=A30, $
FIELDNAME=FIELD_6, ALIAS= , USAGE=A17, ACTUAL=A17, $
FIELDNAME=FIELD_7, ALIAS= , USAGE=A14, ACTUAL=A14, $
FIELDNAME=FIELD_8, ALIAS= , USAGE=A10, ACTUAL=A10, $
FIELDNAME=FIELD_9, ALIAS= , USAGE=MDYY, ACTUAL=A10, $
FIELDNAME=FIELD_10, ALIAS= , USAGE=A17, ACTUAL=A17, $
FIELDNAME=FIELD_11, ALIAS= , USAGE=A9, ACTUAL=A9, $
FIELDNAME=DELIMITER, ALIAS=',', USAGE=A1, ACTUAL=A1, $

Modified Masterfile (Shows all 392 records):

FILENAME=MASTERFILE, SUFFIX=DFIX ,
DATASET=/data/data01/ibi/apps/sampleapp/masterfile.txt, $
SEGMENT=MASTERFILE, SEGTYPE=S0, $
FIELDNAME=FIELD_1, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_2, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_3, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_4, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_5, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_6, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_7, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_8, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_9, ALIAS= , USAGE=MDYY, ACTUAL=A10, MISSING=ON $
FIELDNAME=FIELD_10, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=FIELD_11, ALIAS= , USAGE=A50, ACTUAL=A50, MISSING=ON $
FIELDNAME=DELIMITER, ALIAS=',', USAGE=A1, ACTUAL=A1, MISSING=ON $


Thanks again,

Rob


WebFOCUS 716
Linux Kernel-2.6.9 x86_64 64bit
Excel, PDF, HTML, Active Reports, Visual Discovery
 
Posts: 14 | Location: Bethesda, MD | Registered: June 01, 2007Report 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     Synonym: Delimited flat file records cut short

Copyright © 1996-2020 Information Builders