Posted: Tue Jun 24, 2003 7:18 pm Post subject: Dynamic construction of sort card
I have a file (say date file) of LRECL 400 that has date field in the form
YYMMDD - Pos 33 to 38.
I need to extract the date in MM/DD/YY format and construct a sort card
dynamically like this
I would think you would be able to use STRING in COBOL and output a LRECL80 F file with your sort parms and then use that as input for your sort on a subsequent step. But it sounds like you got it under control.
Glenn
COBOL - String was my back up plan
Actually I had to pad spaces and make up the record to LRECL of 80. Otherwise it automatically takes the output record length as the length of longest record output, irrespective of DCB parameters.
I got an error like
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum