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".
Note: The above assertion is only for z/OS legacy data sets. It does not apply to data in z/OS UNIX files. Mainly because UNIX does not have a "system level" concept of a record. In UNIX, a file is an ordered sequence of individual bytes. Your application imposes any meaning on those bytes that it wants. On Fri, Jun 27, 2014 at 1:21 AM, Ron Thomas <[email protected]> wrote: > Hello > > We have a KSDS VSAM File which is of record length in production as 200 > bytes and we modified the VSAM file to 250 record length . We then copied > old records to the new records. > There is a online screen which updates the file and once that happen the > file is updated with low values after 200 bytes. There is assembler program > when it reads it is failing in get call. > So is there a way by which from the online we can limit the length of the > file to 200 bytes . Please do share thoughts on this? > > Thanks > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
