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] Create a master file separating one string to 10 occurrrence

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Create a master file separating one string to 10 occurrrence
 Login/Join
 
Gold member
posted
I'm trying to separate one string to 10 occurrences in a master file. The field is DATA/A60. The first 8 characters are a filler, then every 3 character is an item upto 10. So that's 30 characters used of the 52. I've created the two masters but the occurs will not work. Something is wrong. Can someone offer any suggestions.

INVENTORY.mas:
FILENAME=INVENTORY, SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=INVENTORY, SEGTYPE=S0, $
FIELDNAME=INVOICE_NUMBER, ALIAS=E01, USAGE=A10, ACTUAL=A10, MISSING=ON, $
FIELDNAME=DATE, ALIAS=E02, USAGE=HMDYY, ACTUAL=A17, $
FIELDNAME=DATA, ALIAS=E10, USAGE=A60, ACTUAL=A60, MISSING=ON, $

INVENTORY_OCC.mas:
FILENAME=INVENTORY_OCC, SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=INVENTORY, SEGTYPE=S1, $
FIELDNAME=INVOICE_NUMBER, ALIAS=E01, USAGE=A10, ACTUAL=A10, MISSING=ON, $
FIELDNAME=DATE, ALIAS=E02, USAGE=HMDYY, ACTUAL=A17, $
FIELDNAME=FILLER8, ALIAS=FILLER8, USAGE=A8, ACTUAL=A8, MISSING=ON, $
FIELDNAME=DATA, ALIAS=E10, USAGE=A52, ACTUAL=A52, MISSING=ON, $
SEGNAME=ITM PARENT=INVENTORY, POSITION=DATA,OCCURS=VARIABLE, $
FIELDNAME=ITM, ALIAS=ITM, USAGE=A03, ACTUAL=A03, $


When I run a table file on them, I get data for INVENTORY but I get the following error for INVENTORY_OCC:
(FOC1822) WARNING. INVALID SYMBOL: >=<
BYPASSING TO END OF COMMAND

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


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Virtuoso
posted Hide Post
There is a comma missing after ITM:
SEGNAME=ITM PARENT=INVENTORY, POSITION=DATA,OCCURS=VARIABLE, $

This can be done a little more simply as:
FILENAME=INVENTORY_OCC, SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=INVENTORY, SEGTYPE=S1, $
FIELDNAME=INVOICE_NUMBER, ALIAS=E01, USAGE=A10, ACTUAL=A10, MISSING=ON, $
FIELDNAME=DATE, ALIAS=E02, USAGE=HMDYY, ACTUAL=A17, $
FIELDNAME=FILLER8, ALIAS=FILLER8, USAGE=A8, ACTUAL=A8, MISSING=ON, $
SEGNAME=ITM, PARENT=INVENTORY, OCCURS=VARIABLE, $
FIELDNAME=ITM, ALIAS=ITM, USAGE=A03, ACTUAL=A03, $


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
I would suggest to not use field alias with E01 or E02 etc...
These names are internal used and I found out the system sometimes get confused.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
Thanks to everyone for comments and help. Issue solved see below:

INVENTORY.mas:
FILENAME=INVENTORY, SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=INVENTORY, SEGTYPE=S0, $
FIELDNAME=INVOICE_NUMBER, ALIAS=E01, USAGE=A10, ACTUAL=A10, MISSING=ON, $
FIELDNAME=DATE, ALIAS=E02, USAGE=HMDYY, ACTUAL=A17, $
FIELDNAME=DATA, ALIAS=E10, USAGE=A60, ACTUAL=A60, MISSING=ON, $

INVENTORY_OCC.mas:
FILENAME=INVENTORY_OCC, SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=INVENTORY, SEGTYPE=S1, $
FIELDNAME=INVOICE_NUMBER, ALIAS=E01, USAGE=A10, ACTUAL=A10, MISSING=ON, $
FIELDNAME=DATE, ALIAS=E02, USAGE=HMDYY, ACTUAL=A17, $
FIELDNAME=FILLER8, ALIAS=FILLER8, USAGE=A8, ACTUAL=A8, MISSING=ON, $
SEGNAME=ITM, PARENT=INVENTORY_OCC, OCCURS=VARIABLE, $
FIELDNAME=ITM, ALIAS=ITM, USAGE=A03, ACTUAL=A03, $


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report 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] Create a master file separating one string to 10 occurrrence

Copyright © 1996-2020 Information Builders