MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

carrige control in ezytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Tue Oct 09, 2007 10:30 am    Post subject: carrige control in ezytrieve Reply with quote

Hi All,

I am facing a problem which i am not able to crack out. The below is my ezytriev code to print a report. I am getting it correctly except there are
unwanted eight "-"" coming just before the end of report.
I tried my level best to avoid that. I dont know wht makes it to print that.
The below is my code. Can any one help me.

Regards

JOB INPUT FILEM START (INIT-PARA) +
FINISH (END-PARA)
PRINT REPORT1
*
INIT-PARA. PROC
MOVE '-' TO WS-ALL-DASH FILL '-'
END-PROC
*
*====================================================================
END-PARA. PROC
DISPLAY SYSPRT2 COL 45 WS-ENDLINE
END-PROC
***********************
0200-WRITE-HEADER. PROC
***********************
DISPLAY SYSPRT2 'XXXXXXXXXXXXXXXXXX SYSTEM'
DISPLAY SYSPRT2 ' '
END-PROC
*====================================================================
REPORT REPORT1 PAGESIZE 40 LINESIZE 132 SUMCTL NONE NOPAGE NODATE +
NOADJUST NOHEADING TITLESKIP 1 PRINTER SYSPRT2
CONTROL FINAL NOPRINT MERCHID NOPRINT
SUM PRINCIPAL-AMT
TITLE 1 'XXXXXXXXXXXXXXXXXXXX SYSTEM'
COL 01 'CARDHOLDER' +
COL 56 'PRINCIPAL' +
LINE 1 COL 01 CARD
COL 43 PRINCIPAL-AMT
BEFORE-BREAK. PROC
IF LEVEL = 1
DISPLAY SKIP 1 COL 21 'TOTAL:' +
COL 43 PRINCIPAL-AMT
END-IF
IF LEVEL = 2
DISPLAY SKIP 1 COL 15 'GRAND TOTAL:' +
COL 43 PRINCIPAL-AMT
END-IF
END-PROC
AFTER-BREAK. PROC
DISPLAY WS-ALL-DASH
IF LEVEL = 1 AND NOT EOF FILEM
DISPLAY COL 03 'CARD' +
COL 56 'PRINCIPAL' +
DISPLAY COL 03 'NUMBER' +
COL 56 'AMOUNT' +
END-IF
END-PROC
ENDPAGE. PROC
WS-PAGE = WS-PAGE + 1
END-PROC
*
TERMINATION. PROC
DISPLAY COL 45 WS-ENDLINE
END-PROC

My report is as below

1XXXXXXXXXXXXXXXXXX SYSTEM
0CARD PRINCIPAL
01234567899999 100
0 TOTAL: 100
----------------------------
0 GRAND TOTAL: 100
----------------------------
-
-
-
-
-
-
-
****** E N D O F R E
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue Oct 09, 2007 2:04 pm    Post subject: Reply with quote

What you're seeing in position 1 of all your report lines is the carriage control character: 1 is top of page, 0 is double space, blank is single space, and - is triple space. I don't have access to a mainframe. Try defining REPORT1 in your JCL as an FBA file instead of FB.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Tue Oct 09, 2007 9:16 pm    Post subject: Reply with quote

Hi Terry,

Thanks, I need to know how we can avoid the triple space in the report.

Regards
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Oct 10, 2007 8:31 am    Post subject: Reply with quote

infoman123,

I think Terry is probably right. Please post your JCL.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Wed Oct 10, 2007 11:12 am    Post subject: Reply with quote

Hi,

i am printing the report in sysout=*.

Regards
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Wed Oct 10, 2007 2:32 pm    Post subject: Reply with quote

infoman123 wrote:
Thanks, I need to know how we can avoid the triple space in the report.
It boils down to: If you are happy with the ones and zeross, you are stuck with the minuses...
Have you experimented with EZT's control processing to attempt to suppress them? IIRC, something like before or after control" ......
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed Oct 10, 2007 2:38 pm    Post subject: Reply with quote

WS-ENDLINE is defined somewhere in your code. I think your PROC called TERMINATION is what's printing at the end of your program. Easytrieve uses the triple spaces to get to the bottom of the page. See Easytrieve manual.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group