View previous topic :: View next topic
|
Author |
Message |
Alexis Sebastian
New User
Joined: 04 Mar 2010 Posts: 38 Location: DC
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|