IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to read Header of online VSAM files?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sheel

New User


Joined: 10 Oct 2007
Posts: 7
Location: Pune, India.

PostPosted: Sat Jan 26, 2008 1:40 pm
Reply with quote

In the KSDS file records are as per their key sequence.
But Header format is different than normal records.

So How to read Header of online VSAM file?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jan 26, 2008 1:46 pm
Reply with quote

In what way is the header record different, and byh eader I assume that you mean a record with low values defined as the key.

You have the program spec, so surely you can read the header record.
Back to top
View user's profile Send private message
Sheel

New User


Joined: 10 Oct 2007
Posts: 7
Location: Pune, India.

PostPosted: Sat Jan 26, 2008 2:07 pm
Reply with quote

Could you please explain How we can read header using the low values ?
What the values we can give in RIDFLD to read first Header record?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jan 26, 2008 4:52 pm
Reply with quote

Quote:
You have the program spec, so surely you can read the header record.

I know absolutely nothing about what your program is doing, nor any idea regarding the key structure of your VSAM file, or the structure of the header record.

What is the key value of the header record, my previous response was merely a guess as most places use low values as a header key.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jan 26, 2008 5:02 pm
Reply with quote

Quote:
But Header format is different than normal records.


it might be different, but the offset/start_position and length of the key
will certainly be the same...

from a ksds point of view there is no HEADER/TRAILER ...
every record is just a record identified by a key

if You know the key there should be no problem reading it with a standard read operation


HEADER/TRAILER concept is used in sequential dataset environment where :
the header will be the first record with or without a token identifying it
the trailer will be the last record with ... same as above
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top