IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    Accessing MVS ISAM file with multiple record types
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<Mark Smith>
Posted
I'm trying to create a webfocus reporting object for a file that contains multiple record type/formats.

For example:
Record1 - 01xxxxrrrrrrrrryyyyyyyyyyyyyyyyy
record2 - 02yyyyyyyxxxxrrrrrrr
record3 - 01xxxxrrrrrrrrryyyyyyyyyyyyyyyyy

In the above example the first two characters are the identifier of the record type, the x, r, y is data. For each record type, the data will be in the same format.

Is there a way to access this kind of file using one master file description?

Also, how would the master and access files be defined to read this kind of ISAM file?
 
Reply With QuoteEdit or Delete MessageReport This Post
<monte2000>
Posted
Hi there, Mark.

I spoke to the Product Manager and he said:

We haven't seen anybody using ISAM files, now every file is a VSAM file. Try the following:
Have a DUMMY root segment,
SEGNAME=DUMMY
FIELD =, A1,A1,$
SEGNAME=R1,PARENT=DUMMY,$
FIELD =RECTYPE,01,A2,A2,$
SEGNAME=R2,PARENT=DUMMY,$
FIELD= RECTYPE,02,A2,A2,$
SEG............
FIELD..........

There are good VSAM people in our Tech Support group, they might even have samples.

Hope this helps,

Monica
 
Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
quote:
Originally posted by monte2000:
[qb]We haven't seen anybody using ISAM files, now every file is a VSAM file.[/qb]
ISAM files are not supported by IBM any longer, but some people do still use them. SUFFIX=ISAM in a MFD should still work (it invokes an earlier version of the FOCSAM interface that supports ISAM files).

The syntax for SUFFIX=ISAM is similar to SUFFIX=VSAM though you don't get the latest and greatest features of the VSAM interface. The code example above of unrelated RECTYPEs with a DUMMY parent segment should work just fine for either ISAM or VSAM files.

ISAM and VSAM files do not require an access file, just a master file description.

Hope that helps.

-Chris
 
Posts: 51 | Location: New York | Registered: March 07, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    Accessing MVS ISAM file with multiple record types

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.