Page 2 of 2

Re: Why my Sort is not extracting data from a VBA file

PostPosted: Thu Oct 17, 2019 2:10 pm
by NicC
"Check your columns twice, code once" to mangle an old adage.

Re: Why my Sort is not extracting data from a VBA file

PostPosted: Fri Oct 18, 2019 12:54 am
by dneufarth
FYI

for VBA

1-4 RDW
5-5 ANSI print control character
6-n data

Re: Why my Sort is not extracting data from a VBA file

PostPosted: Fri Oct 18, 2019 7:54 am
by steve-myers
As both NicC and dneufarth say, check your position twice, at least. ISPF VIEW or BROWSE provide the COLS option as either a primary (it's entered on the command line) or line (it's entered on the line prefix that shows the line number) command. In browse, it might be a good idea to enter the DISPLAYCC primary command for data sets with carriage control. You still have to add 4 for a data set containing variable length records.

Before Frank Yaeger retired I actually got him to admit that sort screwed up years ago when they didn't make it automatically include the RDW. We both agreed it's too late now!