MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What is the basis to decide an output file to be FB or VB?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Fri Mar 21, 2008 6:48 am    Post subject: What is the basis to decide an output file to be FB or VB? Reply with quote

Hi,

How do we decide and output file to be declared as FB or VB Question

Basically, if your record structure has a ODO means, we can go for VB Exclamation

Or

If different output record structures are defined in FD section, we can go for VB Exclamation

Other than this reason, what are the other considerations we will have to keep in mind to decide the output file to be FB or VB Question

Would you please explain this with details Idea

Thanks a lot. Rolling Eyes
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Tue Mar 25, 2008 2:07 am    Post subject: Reply with quote

I would always prefer fixed block over vb because VB requires more system overhead and there are important things that you have to observe, like when sorting to take into respect the 4 byte variable length in the records and again in the block. The best example that I know of for using variable blocked was when I worked for a jewelry company. There you had a ring with x number of gems in it, so if you wanted to have all the data in one record you had to go variable blocked.
If you want a more detailed answer google or look at the manuals, that is what they are there for.
Back to top
View user's profile Send private message Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Mar 25, 2008 9:33 am    Post subject: Reply with quote

Thanks warp5.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue Mar 25, 2008 9:52 am    Post subject: Reply with quote

In addition to warp's comments, I use the general rule of: If there is little variance between the smallest and largest record length, I'd go with FB. Most programmers find this easier to maintain. A big difference between min and max length would encourage VB with multiple 01 definitions in the file definition. Remember that an ODO clause doesn't necessarily mandate VB. You can have an FB file that is defined large enough to hold the maximum number of occurrences, then move the variable portion of the record to working storage for manipulation. Also, as warp mentions, look closely at the manuals. They usually have suggestions for this type of question.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Wed Apr 02, 2008 7:16 am    Post subject: Reply with quote

Terry. Thanks.

Code:

Remember that an ODO clause doesn't necessarily mandate VB.


The above info is new to me.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group