Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
i want to know the number of records in the vsam file and i would lik to write the number of records in the same vsam file as a trailer record
Possibly, i misunderstand. . . If you do this, every insert or delete after this requires that the trailer record be updated or the number will be incorrect. If this file is very active (adds/deletes), there will be performance problems getting control of the trailer record to update it.
What business burpose will be served by getting the number of records into the vsam file into an online cics program? If we know what you want to accomplish (rather than the number of records), we may be able to offer suggestions.