Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

space filling issues

Former Member
0 Likes
508

Hi

I am writing data to flat file.

for each record at the end i need to populate with space of 156 charactes lengh, so that the totla record length will be 512 chars

Can anyone tell me how to solve this issue

thanks&Regards

rama

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
488

Hi

Take the last field of the record and conactenate it with a variable of length 152 charaters....n pass it to the flat file...

Hi

I am writing data to flat file.

for each record at the end i need to populate with space of 156 charactes lengh, so that the totla record length will be 512 chars

Can anyone tell me how to solve this issue

thanks&Regards

rama

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
488

hi Rama,

Applications server:

use the LENGTH addition of TRANSFER:

TRANSFER ... LENGTH ==> here you specify the complete length (including spaces)

Presentation server:

Importing parameter TRUNC_TRAILING_BLANKS of GUI_DOWNLOAD has to be space

hope this helps

ec

Read only

Former Member
0 Likes
489

Hi

Take the last field of the record and conactenate it with a variable of length 152 charaters....n pass it to the flat file...

Read only

0 Likes
488

thanks for your quick reply