Page 1 of 1

Need to generate an empty line.

Posted: Thu Jul 15, 2010 4:20 am
by bicap
Hi everyone
I have a requirement. My source file contain 3 types records Header follows with Item and Control records. Every file contain N number of these record sets. My requirement is after every set of these records I have to generate an empty line. Below is the example. Can anyone help me on this.

Input
------
HDR
ITM
CTR
HDR
ITM
CTR
HDR
ITM
CTR


Output
--------
HDR
ITM
CTR

HDR
ITM
CTR

HDR
ITM
CTR

Posted: Thu Jul 15, 2010 4:51 am
by ray.wurlod
Add an extra line terminator character to the end of each CTR record.

Posted: Thu Jul 15, 2010 5:49 am
by bicap
Hi Ray,
Thanks for your response.

You mean \n ?

Thank you.

Posted: Thu Jul 15, 2010 6:02 am
by ArndW
Yes. If you are using default UNIX sequential file terminators, putting a CHAR(10) in your job will add a line feed.