Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to read Header of online VSAM files?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to read Header of online VSAM files?
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jan 26, 2008 1:46 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jan 26, 2008 4:52 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Sat Jan 26, 2008 5:02 pm    Post subject: Reply to: How to read Header of online VSAM files?
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us