The answer from John McKown was >Bottom line: No. When you read a record from _any_ data set, VSAM or not, you >get an entire _record_. There is no way in VSAM or other access methods to >say: "Get the record, but only return the first 200 bytes to my program".<
Joel C. Ewing wrote: >VSAM KSDS data sets are always variable length by definition. Setting >"average record length" = "maximum record length" indicates an intent to write >same length records and that information is used for space calculations, but >each record still has its own length value, is structurally variable length, >and records of any length up to the maximum record length are allowed by VSAM. > So if you just re-defined the file with higher maximum and average record >length and copied the old records to a new file using something like REPRO, or >some other utility with no explicit record size redefinition, the old records >would be exactly preserved including the original record length of 200, just >like you were using the utility to copy from one RECFM=VB file to another VB >file defined with a larger record size. There are utilities that will expand >and pad the records on copy, but you have to use appropriate control cards to >explicitly request that be done. < How did you copy the data? Have you printed the VSAM Records as suggested to see what they look like? I am still curious as to what is the error message you get with this change. Sometimes the error message can be helpful in suggesting a solution. Is it an IBM Message Like IDC something? Or your own message. If your own, it should be based on a condition within your program for it to be produced. How is the IO (DCB or IO SECTION) look in the program that writes the records? And why expand it to 250 bytes if you want to use less than that? Lizette > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Ron Thomas > Sent: Friday, June 27, 2014 6:58 PM > To: [email protected] > Subject: Re: AW: [IBM-MAIN] VSAM File issue in read > > I needed to know is there any thing we can do for this file so that doesn't > write > anything beyond 150 bytes , so that the length of the record read will be <= > 150 > > Thanks > Ron T > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
