This is my JCL. I want to copy a line greater than 80 bytes long into a single line in output file. output file record Lenght is 160 and variable. I dont get any abends. but the output file has first 80 bytes in first line of output file i.e. 123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H
and
next line has this 123456789A123456789B
I want all of them in same line. Is this possible ? How do we do this.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Jan 25, 2005 10:30 am Post subject:
Quote:
Kolusu , Are you talking about this post ? I am not sure how this is related to my question. Please explain.
Vivek,
Yes Indeed I am talking about that post .This is from your first post.
Quote:
but the output file has first 80 bytes in first line of output file i.e. 123456789A123456789B123456789C123456789D123456789E123456789F123456789G123456789H
and
next line has this 123456789A123456789B
I want all of them in same line. Is this possible ? How do we do this.
Since you wanted all the records from the input file in a SINGLE line, I showed you an example of overriding the LRECL.
Kolusu, I am sorry for the confusion. actually there is no common field.
I just have a line
alsdfjaslfjasldfs ................ 1 to 80 and the next line could be
123472394723489 and i want the second line to start from 81st col in output file.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri Jan 28, 2005 12:07 pm Post subject:
Quote:
Kolusu, there is no limit on number of records. Any way post me a jcl for that.
Vivek,
Without knowing the no: of records it is near impossible to to achieve the desired results. The maximum blksize you can have is 32760. For a 80 byte file, the max blksize is 32720 which can take up to 409 records. After that you cannot really override the lrecl.
Assuming that you have less than 409 records then the following JCL will give you the desired results.
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