How do I insert Blank characters to the records using OUTREC.
Suppose I have an FB Input file of LRECL 16 and I want it to make it to 80.
i.e, from positin 17 to 80 I want just C ' ' to be inserted.
Let me know the OUTREC syntax.
An easier way to do this is to use this DFSORT statement:
That tells DFSORT to pad with blanks up to position 80. So you don't have to calculate the number of blanks needed.
Notice I used BUILD instead of FIELDS. Although BUILD and FIELDS are equivalent for the OUTREC statement, BUILD is preferred over FIELDS because it can be used in INREC, OUTREC, OUTFIL and IFTHEN.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: