Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Editing a Variable Block file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
manugeorge2004

New User


Joined: 17 Jun 2009
Posts: 35
Location: Denver

PostPosted: Tue Jul 13, 2010 10:06 pm    Post subject: Editing a Variable Block file
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jul 13, 2010 10:13 pm    Post subject:
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

Active Member


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

PostPosted: Tue Jul 13, 2010 10:28 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Jul 13, 2010 10:47 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 14, 2010 8:56 am    Post subject: Reply to: Editing a Variable Block file
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

Active Member


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

PostPosted: Wed Jul 14, 2010 7:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us