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

KSDS rec length is 24 and key length is also 24


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anand tr

New User


Joined: 12 Aug 2008
Posts: 41
Location: chennai

PostPosted: Wed Oct 01, 2008 11:12 am
Reply with quote

Hi,
I have a flat file of record length 100 of which i need 24 fields to b written to the output so that the record is unique.So am reproing those fields into a KSDS giving the 24 fields as a key. looking at the fact that the KSDS rec length is 24 and key length is also 24, will it not be a flat file again?. Can we access the KSDS in the cobol program by using indexed access method?
I guess the concept of giving all the entries to KSDS as keys is wrong... Please correct me if i am wrong.
Back to top
View user's profile Send private message
ramakrishnag

New User


Joined: 10 Sep 2008
Posts: 6
Location: india

PostPosted: Wed Oct 01, 2008 11:53 am
Reply with quote

Hi,

I think you wanted to store 24 bites as key in KSDS file (correct me if am wrong).

You can create 24 bites of KSDS file and you can use the same as INDEX in cobol program too.

My understanding is this file will be having less records and try to validate the key in the input file is entered correct or not.

Ex : Currency file contains currecny code which will be validating during the customer application insretion.

This case can use data in table.

Thanks,
Rama
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 01, 2008 4:55 pm
Reply with quote

Defining a VSAM file with key length 24 and record length 24 does not change the fact that it is a VSAM file. From an application point of view it doesn't make much sense to have a file that is all key but it can be done. The file will be accessed as a VSAM file, not a flat file.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top