I have a VB file, which I am trying to sort. The key starts from 1st position and is of 3 bytes. I am using the following sort card SORT FIELDS=(1,3,CH,A) but I am getting unexpected results, can some one tell me what is wrong. I tried with a FB file and the things worked as expected.
"; ; ; ;
Custom Search
well if you want to sort VB file you have to convert VB to FB by using the control statement OUTFIL FNAMES=FBVB1,FTOV.Usually the Output
fil will be VB file of fixed length that is length of FB plus 4 bytes.to create true VB file without trailing blanks of the input FB File,add VLTRIM=x'40' following FTOV.
Thanks
Swaminathan(Comments taken from book Mainframe Refresher - Muthu)