Posted: Fri Apr 20, 2007 2:52 pm Post subject: Problem using SORT - OUTREC statement
Hi,
I have a dataset, which is 2741 lenght and I want to copy all the records but only lenght of 2712. I have used the following job to do that, but when records were copied the output is having lenght of 2712 but the data was not good. Original file (2741 lenght) have all types of fields, comp-3, character, comp-1 etc.. Can someone help me with this problem. Here is my job. Did I miss anything in sysin??
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Apr 20, 2007 4:46 pm Post subject:
Quote:
but when records were copied the output is having lenght of 2712 but the data was not good. Original file (2741 lenght) have all types of fields, comp-3, character, comp-1 etc..
For this job, DFSORT copies input positions 1-2712 to output position 1-2712 without any changes. Whatever you had in the first 2712 bytes for input will be placed in the first 2712 bytes for output. I don't know what you mean by "data was not good". The output data will be the same as the input data. For this job, DFSORT doesn't care what type of fields are in the input records - it just treats them as bits.
You're going to have to clarify what you mean by "data was not good", and show the //SYSOUT messages, and how the output data is different from the input data, before anyone can help you. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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