I have an input file FILE1 of FB format and record length 80 . But the data in this file keeps varying. I want to use another file FILE2 whose length should be of the data present in FILE1 . Each day the length of data in FILE1 would change. So according to that FILE2 should have the length. Is there any way to achieve this using a DFSORT or JCL .
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Well, there is no way to do this "with JCL". Some utility would have to be invoked (sort or something else).
In order for anyone to help, you need to provide more complete info about what you want this to do. One way might be to show some sample input and what you want as output when that sample iknput is processed.
If the record length is 80, how does the data keep varying. . . Every record in that file is 80 bytes long. Why/how would the length change each day?
Joined: 20 Oct 2006 Posts: 6968 Location: porcelain throne
sounds to me as if the TS wants to 'parse' the input file of 80 char,
which will be consistant,
and output only 'non space characters',
effectively creating an output file whose length is based on non-space char input.
why do you want to do this?
creating dynamic record lengths
makes it difficult for the the down-stream processes.