Himanshu-kaushik,
Without code tags, its hard to figure out the positions but you are potentially going to miss some of the trailing bytes.
From your example you show that field2 length is just 14 bytes but "Vengatachalapathy" exceeds that limit. How would you even get that value of 17 bytes in the 14 byte field?
Of course your final output in this case after SQZing is 30 bytes but to start with the field itself is more than 14 bytes.
On Behalf of Himanshu Kaushiik, I will let you know the requirements.
MY Input File LRECL is 29 , Format is FB. I ant an output file with LRECL - 30 and RECFM -FB.
Input File has two fields - First Name and Second Name.
Fist Name is 15 Bytes and Second Name is 14 Bytes.
I want to come up with a Comma Seperated File haveing Comma in middle of both First NAme and Second Name. First Name can have more than two words seperated by a Space and I don't want to have comma in middle of these two words present in First name field. For Example-
Field1 – length 15 Field2 – Length 14
<-------------------> <--------------------->
Prasannaa S GUPTA
Sashi Kalasanna
Prince Yardley Kumar
Now I need the output as
Field1 – length 30
<--------------------------------------->
Prasannaa S,GUPTA
Sashi,Kalasanna
Prince Yardley,Kumar
I hope things would have become clear by above expaination. Please let me know in case you need any other Clarification.