(a) Not if the record is defined as fixed length RECSZ=(250,250) - because it is then physically written as 250 bytes in the CI and its RDF will have 250 as its length. But you could define it as variable length. (b) You can read only the first 150 bytes of the record by accessing it directly in the buffer. For that, you should specify OPTCD=(...,LOC,...) instead of the default OPTCD=(...,MVE,...) in your RPL. VSAM will then return the address of the record in the CI buffer (instead of the record itself) in your RPL's specified AREA. Load this record address into a register (e.g. 'L R4,AREA') and you can then map your 150 or 200 byte DSECT over the physical 250 byte record with a "USING <whatever DSECT>,R4". (Note: This might need some tweaking before it works.)

Ron Thomas wrote:

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



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to