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
 

 

Report Writing without REPORT WRITER!!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Wed Mar 29, 2006 10:44 pm    Post subject: Report Writing without REPORT WRITER!!!
Reply with quote

Hi,

It came to me as a Huge shock when I came to know that REPORT WRITER is not present in the compiler in my shop icon_eek.gif

Any way, I took care of my report, except one detail.

I need a new page in the report when writing a new customer data. i.e. I have written the old customer data in 2 and a half pages, and the next customers data should come in the new page, NOT in the middle of the last page written. I thought EJECT would do, but I see it here that EJECT is used for cobol program listing to appear on a new page and is coded before the procedure section. Now is there a procedure section verb i can use?
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Mar 30, 2006 6:51 am    Post subject:
Reply with quote

It depends. If you're using "AFTER ADVANCING" YOU WRITE PRT-REC AFTER ADVANCING PAGE.

If you're putting in your own CCs (cntl chars) in the 1st char of each line, move a "1" to the CC then WRITE the line.
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Thu Mar 30, 2006 5:11 pm    Post subject:
Reply with quote

Thanks Jack,

But shouldn't the PAGE be defined here, if I am not using CC's?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 01, 2006 5:09 am    Post subject:
Reply with quote

Hi N2C,

I'm not sure I understand your ques. But PAGE tells the compiler to put a "1" in the 1st pos of the rec you WRITE with that stmt. That in turn tells the printer to skip to the top of a new page before the line is printed.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Sat Apr 01, 2006 5:34 pm    Post subject:
Reply with quote

hy new2cobol,

note: what mmwife wants to explain to you...
the file you create should be RECFM=FBA, for A means
1 byte in beginning of this file as ASA-character.
with this position, you are able to put linefeeds, pagefeeds aso.
for structuring your report (there is no need to write empty lines!).

now with these special WRITE statements, you do not have
to do this yourself, i.e. AFTER ADVANCING PAGE

if you send your file to any host printer, this behaviour
will create you a nice rport.
note: maybe not working for LAN printer!

martin9
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Sun Apr 02, 2006 2:08 am    Post subject:
Reply with quote

Thanks Jack and Martin,

I now understand what you are saying...
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am


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