Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between FB and FBA

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Difference between FB and FBA
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    Post subject:
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    Post subject:
Reply with quote

This will helop you for understanding
http://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

Senior Member


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

PostPosted: Fri May 28, 2010 3:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm
No new posts Difference between -180 and -181 with... deepak_shrivastava DB2 4 Wed Jan 06, 2016 10:00 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us