Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flat File trailing blanks or spaces 1

Status
Not open for further replies.

jmanj

Programmer
May 20, 2003
298
US
How do you add trailing blanks to a flat file. I have a MF cobol program that creates a fixed length record of 300 characters. The last 60 characters is an all blank field.
I have used filler with value spaces, move spaces to the field
or move " " to the field but the created file does not contain the trailing blanks.

I know the question can be how important is it? It's just a field with nothing in it. Our client does have a purpose with it and I'm at a loss on how to deliver.

This used to work on AS400 but since we are migrating to Sun Solaris (unix) this seem to be an impossible task.

The only thing I can think of is embed the record with CR/LF characters at the end of each record but I have no idea on how to do that in micro focus cobol.

Thanks to any help.
 
An easy way is to move an "X" to the last byte, then all the spaces come across. I do this with flat files all the time.

Cathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top