• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

WebSphere reading large VSAM file

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Vintage Mainframer working with WebSphere, was wondering if anyone could help? I have a general understanding of single record and array reads but have started a project where I’ll be using VSAM files containing around 60 million records. In COBOL, I might use a Start command to position an index where I would begin a sequential read of a file – is there something like that I can use for my Websphere project?

Or maybe better way to ask would be: Could someone make a suggestion on how to read a very large (product id number and seq# as key) VSAM file with the product id as the input. One could assume the first seq# would be 0001.

One of many Dinosaurs
 
Marshal
Posts: 68857
275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question too difficult for this forum: let's move you to the Websphere forum.
 
Larry Terry
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For anyone having similar issue, I have what I believe to be the solution:

zckarf.locate(rKey,#,#,ZFile.LOCATE_KEY_EQ);

# = key beginning and length
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic