Glossary entry

French term or phrase:

á blancs

English translation:

padding with spaces

Added to glossary by Laura Miller
Jul 30, 2007 22:56
16 yrs ago
French term

á blancs

French to English Tech/Engineering Computers: Software COBOL
This is from a poorly-written RPL/COBOL reference guide.

FDREC1: PIC X ou structure; seule la longueur compte, qui doit être égale au LRECL réel. Sinon: = en RPL: troncation ou completion á blancs.

Thanks in advance!

Discussion

Laura Miller (asker) Jul 31, 2007:
I'm going to wait the required time before grading, but I wanted to thank you Jennifer for your answer, and also vera-tech for taking the time to answer, thanks!

Proposed translations

+1
36 mins
Selected

padding with spaces

It sounds to me like the data needs to be a fixed length.

For example, let's say we need an 8-character string.

If the input is 8 characters, the code outputs the value without any changes.
Input: ABCDEFGH
Output: ABCDEFGH

If the input is too long, it is truncated to 8 characters.
Input: 1234567890
Output: 12345678

If the input is too short, the code pads the value up to 8 characters. ([END] denotes the end of the string, just for the purposes of illustration.)
Input: ABCD[END]
Output: ABCD [END]


http://support.microsoft.com/default.aspx/kb/228738
"The parameter's "COBOL Definition" properties have the Pad with spaces check box selected to specify that the string delivered to the host is to be padded on the right with spaces by COMTI runtime."

http://aspn.activestate.com/ASPN/Mail/Message/activeperl/216...
"This snippet shows how to pad a given string with spaces to a given fixed length."

--------------------------------------------------
Note added at 37 mins (2007-07-30 23:34:21 GMT)
--------------------------------------------------

The HTML on this page reduces the four trailing spaces down to one in my example, but I hope it still makes sense!
Note from asker:
This seems to be a pretty logical explanation Jennifer. Thanks for the explanation and references!
Peer comment(s):

agree Manon J. Caron : Yes, I think you've got the right answer
35 mins
Thanks, manonjo!
Something went wrong...
4 KudoZ points awarded for this answer. Comment: "Thanks!"
11 mins

with blank spaces

guess - to complete or fill in with blank spaces (if it's characters), else to fill in with a blank (or no fill)



--------------------------------------------------
Note added at 5 hrs (2007-07-31 04:33:28 GMT)
--------------------------------------------------

Jennifer basically repeated what I said but that's OK - it seems you hadn't understood it either

to complete or fill in with blank spaces (if it's characters)

Note from asker:
You're right vera-tech, which is why I thanked you as well. I can't (unfortunately) split up points, and since Jennifer gave me some references as well, I gave her the points. I'm sorry!
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search