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

Difference between FB and FBA


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Alexis Sebastian

New User


Joined: 04 Mar 2010
Posts: 38
Location: DC

PostPosted: Fri May 28, 2010 12:34 pm
Reply with quote

Hi All,

I have faced a problem that when i am trying to use sort for FBA file, i need to give 1 byte additional to what we exactly look for?

I would like to know the difference between FB and FBA. Normally we use 4 bytes for RDW in VB file. Likewise why do we need to give 1 byte for FBA file?

Alex
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri May 28, 2010 12:36 pm
Reply with quote

FBA will have one extra byte at first position for cariage control information...

This information is used for printing purpose..
E.g
1 - New page
0 - double space
+ - suppress spacing
- a blank for single spacing
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri May 28, 2010 2:57 pm
Reply with quote

This will helop you for understanding
publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.cbcpx01/recfmf.htm#recfmf
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri May 28, 2010 3:34 pm
Reply with quote

In RECFM, FBA, 'A' constant means that the data set contains the ASA print control parameter. It be a print data set. The print data set can write to magnetic diviceses to backup or this data sets can be print later.

If talk about COBOL, when you use FBA for any file in JCL, 1 byte is reserved for printing control character and thats why you have to declare minus 1 byte for the printing/report output file in the FD 01 level and use AFTER ADVANCING in procedure division. Compiler understands when it come accross this(AFTER ADVANCING) statement. For that matter, You might also check your compiler options, ADV/NOADV.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top