IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Editing a Variable Block file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manugeorge2004

New User


Joined: 17 Jun 2009
Posts: 38
Location: Denver

PostPosted: Tue Jul 13, 2010 10:06 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 13, 2010 10:13 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Jul 13, 2010 10:28 pm
Reply with quote

easy enuf to test
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jul 13, 2010 10:47 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jul 14, 2010 8:56 am
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Jul 14, 2010 7:24 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top