What is the difference between FB and FBA?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

What is the difference between FB and FBA?

Postby ramesh4mainframes » Thu Aug 12, 2010 10:03 am

Hi,

I have the Idea about FB (Fixed Block) and F (Fixed) but i have no awareness of FBA? Can you explain the difference?
Thanks,
RamS
ramesh4mainframes
 
Posts: 32
Joined: Mon Jun 07, 2010 3:58 pm
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

Re: What is the difference between FB and FBA?

Postby dick scherrer » Thu Aug 12, 2010 10:07 am

Hello,

FBA contains "printer spacing" or "carriage control" info - which you can read about in the JCL reference manual.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: What is the difference between FB and FBA?

Postby steve-myers » Thu Aug 12, 2010 10:44 am

To expand upon Mr. Scherrer's post. The carriage control character is in the first byte of each logical record. The common ones are 1, to start a new page, blank to start a new line, 0 to insert a blank line before printing the current line, - to insert two blank lines, and + to overprint the current line with the new line. With the advent of page oriented printers (laser printers), + has fallen into disuse because it produces unpredictable results.

There are other carriage control characters, but they are very rarely used since they require special carriage control "tapes" for very old line printers or carriage control images for newer printers. If the correct carriage control information was not available to the printer the use of these carriage controls caused extremely undesirable results at the printer, especially in older printers that used carriage control "tapes." Technically 1 requires a carriage control tape or image, but this is almost always provided.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: What is the difference between FB and FBA?

Postby Phrzby Phil » Wed Sep 22, 2010 6:49 pm

Further expanding -

The A stands for ANSI (American National Standards Institute).

Also, in TSO, try this: browse and then view or edit an FBA dataset. For each see what columns are initially displayed. I think they'll be different. The browse will not show col1 but will say col1-80. The view/edit will actually show the ANSI char column.
Phrzby Phil
 
Posts: 7
Joined: Wed Jun 30, 2010 8:02 am
Has thanked: 0 time
Been thanked: 0 time

Re: What is the difference between FB and FBA?

Postby steve-myers » Wed Sep 22, 2010 10:18 pm

ISPF browse will display the carriage control character if you enter DISPLAY CC in the command area and press your Enter key. DISPLAY CC is a retained attribute; once entered ISPF will continue to display it for other data sets with carriage control characters until you turn it off by entering DISPLAY NOCC.

SDSF does not normally display carriage control characters, though it will display them if you press the F10 key, or your scroll left key, if it is not F10 .
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post