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
 

 

KSDS rec length is 24 and key length is also 24

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: KSDS rec length is 24 and key length is also 24
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    Post subject: Reply to: VSAM Keys
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: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Wed Oct 01, 2008 4:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm


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