View previous topic :: View next topic
|
Author |
Message |
manugeorge2004
New User
Joined: 17 Jun 2009 Posts: 38 Location: Denver
|
|
|
|
Hi
When I edit a Variable block file, I am getting a warning
Truncation warning. The data you are editing is variable length data with at least one record that ends with a blank. Saving the data will result in
removal of any trailing blanks from all records. You can issue the PRESERVE ON command if you don't want the blanks removed.
What does this mean. Will it convert trailing spaces to low-values. What does PRESERVE ON command do. If I use this command, will it make any other data modifications
Your advice is appreciated. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Why are you having trouble believing the computer? If you're not willing to believe it, you probably should not be in IT -- understanding what the computer tells you is 90% of your interactions with the computer.
It is telling you that you're dealing with a variable blocked file, one (or more) records have trailing spaces, and you have not got the option set to preserve those spaces if you save the data set. They will not be converted to LOW-VALUES, they will be removed. The record length will therefore be changed. If you don't want this to happen, you need to cancel your edit session and when you go back into edit, select the option to preserve trailing spaces. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
easy enuf to test |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
or golly, PF1 when you receive the message and find out something.
but, i understand, your time is very valuable and need not be wasted by
expanding your skill set by reading & researching.
after all, that is what the dummies at this forum are for. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Will it convert trailing spaces to low-values. |
Variable length records are stored with the record length at the beginning of the data and followed by the data.
Without PRESERVE ON, the editor will convert this (where a period represents trailing blanks):
0020 my data.............
to this
0007 my data
But when the editor shows it to you, it will look identical. Perhaps you would want to preserve the trailing blanks for a program that would read the data.
note: forgive my use of decimal vs. hex count, etc... |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Won't look identical in editor in hex mode.
"Nothing" will still be a blank screen.
Spaces will be blank on the display line, but will show 40 (4 over 0) below. |
|
Back to top |
|
|
|