Focal Point
FOC198 - how to view the data fiel which is a VSAM file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7431039772

March 27, 2008, 01:36 AM
rb4u
FOC198 - how to view the data fiel which is a VSAM file
Hi
Can any one help me how to view the datafile which is VSAM configured...

I want to view all the data from the file,
my coding is below

TSO ALLOC F(TBRMONTH) DA('TBR.MAST0006') SHR REUSE
TABLE FILE TBRMONTH
PRINT *
END

When i do so it throws FOC198 error stating,

(FOC198) FATAL ERROR IN DATABASE I/O. FOCUS TERMINATING ERROR WRITING FOCSORT


Thanks,
RB4U.


Focus Core 7.1.1 & 7.6.4
XP
MainFrames
March 27, 2008, 01:42 AM
Danny-SRL
RB4U,

If you add a recordlimit do you get the same error message

TABLE FILE TBRMONTH
PRINT *
IF RECORDLIMIT EQ 10
END



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

March 27, 2008, 09:16 AM
Diptesh Patel
It seems you are hitting the file size limit for FOCSORT. Look into TABLEF instead of TABLE. If you only need to view the data, without any BY phrases, that should work.


Diptesh
WF 7.1.7 - AIX, MVS
March 27, 2008, 10:44 AM
PBrightwell
A 198 is an error reading/writing to a FOCUS database. I think you have an error in your Master. Can you post your MFD (Master File Description). Also, check your user manual for DYNAM ALLOC, it has been a long (loooooonnnnnng) time since I have used a VSAM file, but your allocation doesn't look quiet right. How many characters are in a record?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes