RE: How to browse Vsam files in ascending order and in...
We have to access the VSAM file in sequential mode.Since VSAM files are arranged in key sequence of acesending order .declare the file as follows:For example in PL1:Declare the file name as follows.DCL vsamfile file input sequential env(vsam);To browse in ascending order :dcl Vsamfile file input sequential env(vsam) bkwd;jai
RE: How to browse Vsam files in ascending order and in...
As a programmer I always try not to use complicated logic. To answer your question:Ascending: Declare in COBOL as Access mode is sequential then do a normal read.Descending:1. Repro file to a flat file2. Use utility sort with D (descending parameter) on the flat file.3. Use the flat file in your read.