Here i'm trying to add Header information to InputFile and get it into Output File. My input file Record Lenght is 250, so iused the same for my output file as well.
When executed the above code, i'm getting the below error
Code:
IDC3302I ACTION ERROR ON Output
IDC3309I ** RECORD X'6060404040' NOT WRITTEN. LENGTH INVALID
Can you please help me out, in solving this.
Thanks!!
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Feb 13, 2009 5:30 pm Post subject:
Kris,
you are concatenating a 80 byte instream data with 250 Byte dataset . The first dataset sets the LRECL to 80 bytes and all the records that have length greater than 80 would result in IDC3309I error. If you just want to add a header to your existing file, you can use DFSORT to create the header. You don't have to specify the DCB for output datasets as sort will automatically copy it from input
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Feb 13, 2009 6:38 pm Post subject:
Kris wrote:
I have another query, is there anyway to append two ps files of different length (one is 80 and another is 250)?
You canNOT concatenate different LRECL FB recfm datasets. However you can concatenate different lrecl VB files . You can always copy the 80 byte file into a 250 byte file and then concatenate them together as shown below
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