Print file needs to be FBA, not FBM - not sure if JCL or COB



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

Re: Print file needs to be FBA, not FBM - not sure if JCL or

Postby BillyBoyo » Tue May 08, 2012 12:41 am

That's what the ADV is about NicC. It adds the extra byte automatically.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Print file needs to be FBA, not FBM - not sure if JCL or

Postby basmith11 » Tue May 08, 2012 12:42 am

I don't. I believe the system takes care of it by the way your write the lines to the file.

i.e. 'after page' 'after 1' 'after 2' etc....
basmith11
 
Posts: 11
Joined: Fri Feb 10, 2012 7:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Print file needs to be FBA, not FBM - not sure if JCL or

Postby NicC » Tue May 08, 2012 12:53 am

But still - where does it put it? - and does the system write an ASA character or a machine character? - and what if you want to underline e.g. which is asa char +?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Print file needs to be FBA, not FBM - not sure if JCL or

Postby dick scherrer » Tue May 08, 2012 12:56 am

Hello,

From the COBOL manual:
Use NOADV if you already adjusted record length to include 1 byte for the printer control character.
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: Print file needs to be FBA, not FBM - not sure if JCL or

Postby basmith11 » Tue May 08, 2012 1:05 am

Well you are not going to believe this.... Upon further investigation I fould two lines where they had used 'BEFORE'. I changed that to 'AFTER' and the file now comes out correctly as FBA and not FBM.

All is well... Thank you all very much for helping me figure this out.
basmith11
 
Posts: 11
Joined: Fri Feb 10, 2012 7:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Print file needs to be FBA, not FBM - not sure if JCL or

Postby dick scherrer » Tue May 08, 2012 1:09 am

Yup, we'd believe . . .

Thank you for posting the resolution :)

d
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: Print file needs to be FBA, not FBM - not sure if JCL or

Postby BillyBoyo » Tue May 08, 2012 1:51 am

Yes, that'd do it.

For information:

Exclusively AFTER, you get FBA. Anything else (BEFORE or not specified, mixed or exclusive) you get the FBM.

With compiler option NOADV you need to specfify an extra byte at the start of the record for the control character, otherwise you will get the first character of your print record used as the control character. With ADV, the compiler inserts a byte for you, which you will not see in your program, but it's there...
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post