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     Unable to read external file using TABLE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Unable to read external file using TABLE
 Login/Join
 
Gold member
posted
I'm attempting to use the "McGyver Technique" to generate multiple record types from a single row of data. Used -WRITE to create the file with RECTYPE successfully, and can -READ & -TYPE from the file just fine. But when I try to use TABLE to print the contents of the file I get 0 records.

I created the following MFD:

FILENAME=RECTYPES, SUFFIX=FIX , $
SEGMENT=RECTYPE, SEGTYPE=S0, $
FIELDNAME=BLANKS, ALIAS=BLANKS, USAGE=A1, ACTUAL=A1,$
FIELDNAME=RECTYPE, ALIAS=, USAGE=A5, ACTUAL=A5,$
FIELDNAME=DELIMITER, ALIAS=, USAGE=A1, ACTUAL=A1,$

RECTYPES.DAT looks like this after the run:

101 $
202 $
303P01$
403P02$
504 $
611 $
744 $
860 $

Following is an ECHO of the procedure as it runs:

FILEDEF RECTYPES DISK E:\ibi\apps\test\RECTYPES.DAT
-RUN
-***
-WRITE RECTYPES 101 $
-WRITE RECTYPES 202 $
-WRITE RECTYPES 303P01$
-WRITE RECTYPES 403P02$
-WRITE RECTYPES 504 $
-WRITE RECTYPES 611 $
-WRITE RECTYPES 744 $
-WRITE RECTYPES 860 $
-***
-SET &ECHO=OFF ;
RECTYPE=01
RECTYPE=02
RECTYPE=03P01
RECTYPE=03P02
RECTYPE=04
RECTYPE=11
RECTYPE=44
RECTYPE=60
Lname Device Lrecl Recfm Append Filename
============================================================
RECTYPES DISK 0 V E:\ibi\apps\test\RECTYPES.DAT
0 NUMBER OF ERRORS= 0
NUMBER OF SEGMENTS= 1 ( REAL= 1 VIRTUAL= 0 )
NUMBER OF FIELDS= 3 INDEXES= 0 FILES= 1
TOTAL LENGTH OF ALL FIELDS= 7
TABLE FILE RECTYPES
PRINT RECTYPE
END
-EXIT
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
 
Posts: 65 | Location: Chicago, IL | Registered: July 26, 2007Report This Post
Virtuoso
posted Hide Post
I've not tried to replicate this, but I think this is to do with using the keyword RECTYPE, which expects an ALIAS or ACCEPT list, e.g.

FIELDNAME=RECTYPE, ALIAS=RCT, USAGE=A5, ACTUAL=A5,
ACCEPT=12345 OR 23456 OR 34567,$

When you TABLE off this structure, FOCUS looks for specific values of RECTYPE to retrieve.

If you do not want there to be a specific filtering for RECTYPE, change the field name. If you do want filtering add an ACCEPT list. See the Describing Data docs for more info.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
I knew it was something silly. I even knew about RECTYPE being a keyword, which is why I avoided using it as the ALIAS.

Needless to say, I changed RECTYPE to MYTYPE and it ran correctly.

Thanks AB.

AP


WF 7.6.6, FOCUS 7.6.4, IBM MVS/TSO, Windows 2003 Server, DB2, MSSQL
 
Posts: 65 | Location: Chicago, IL | Registered: July 26, 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     Unable to read external file using TABLE

Copyright © 1996-2020 Information Builders