IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to print EZT to not sysprint?


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jigar Patel

New User


Joined: 21 Apr 2008
Posts: 2
Location: India

PostPosted: Mon Apr 21, 2008 4:52 pm
Reply with quote

Hi,

When I am using Print statement with report, the report is appended in SYSPRINT. But, I want it in the Flat file without System messages and standard output.

Anyone has any idea please...

Thanks,
Jigar

email address deleted
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 21, 2008 8:30 pm
Reply with quote

Hello Jigar and welcome to the forums,

When you have a question, it is best to begin a new topic for your question rather than replying to some old topic.

What does your "REPORT" statement look like?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Apr 21, 2008 9:23 pm
Reply with quote

Check the manual....
Quote:
[PRINTER file-name-3]
The optional PRINTER parameter directs the report's printed output. File-name-3 identifies the FILE that receives the report. This file must have the PRINTER attribute specified. The default is the CA-Easytrieve/Plus standard print output file: SYSPRINT for OS/390, SYSLST for VSE.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Apr 22, 2008 6:55 pm
Reply with quote

Jigar Patel wrote:
I have tried as per your suggestion but It's not working. In my EZT I have coded the PRINTER statement as below:

FILE OUTPUT1 PRINTER

Can you guide me lil bit more I think I very near as per your guidance... or can you mail me any sample EZT with its JCL which is generating report in flat file...
One line of code doesn't allow much to explain 'not working'.....
Again, have you checked the manual?
The manuals are copyrighted material, if your shop has EZT, you can get it easily from CA by email....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 22, 2008 7:19 pm
Reply with quote

Hello Jigar,

If you are actually creating a report, you probably have a REPORT statement in the code.

You need to post that (at least). It would also probably help if you post the jcl for this ezt step.

Hopefully, your next post won't "go away" as the last one did. . .
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Apr 22, 2008 7:32 pm
Reply with quote

Quote:
FILE OUTPUT1 PRINTER


try this instead

FILE PRINTER OUTPUT1
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 23, 2008 1:17 am
Reply with quote

Hello,

Jigar Patel wrote:
Quote:
The Report statement looks as

REPORT EMPRPT LINESIZE 80
LINE 01 EMP-NAME EMP-NO DEPT DOJ EMP-SAL

But when I am using this it is printing the output in SYSPRINT along with other SYSPRINT messages but I want only the report in the separate flat file...
As requested above, please post the jcl for this.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Apr 23, 2008 1:45 am
Reply with quote

Jigar Patel wrote:
REPORT EMPRPT LINESIZE 80
LINE 01 EMP-NAME EMP-NO DEPT DOJ EMP-SAL

Read the fine manual!
REPORT EMPRPT PRINTER file-name-3 LINESIZE 80
LINE 01 EMP-NAME EMP-NO DEPT DOJ EMP-SAL
along with
FILE file-name-3 PRINTER
and
//file-name-3 DD SYSOUT=whatever
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Wed Apr 23, 2008 2:39 am
Reply with quote

You may also want the noheading/space options added to the report line.

Read the manual.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Apr 23, 2008 5:27 am
Reply with quote

lcmontanez wrote:
You may also want the noheading/space options added to the report line.
Please inform, how would that help, I fairly new to EZT, and I'd like to know......
Back to top
View user's profile Send private message
Jigar Patel

New User


Joined: 21 Apr 2008
Posts: 2
Location: India

PostPosted: Wed Apr 23, 2008 3:26 pm
Reply with quote

I got the solution I would like to share with you all ppl...

//PRINT001 DD DSN=WXX262.EMPLOYEE.INFO.DATA.REPORT.OUT,
// UNIT=SYSDA,DATACLAS=HUGE,
// RECFM=FB,LRECL=80,DSORG=PS,
// BLKSIZE=0,
// DISP=(NEW,CATLG,DELETE)

//****EASYTRIEVE PROGRAM****
//SYSIN DD *

FILE PRINT001 PRINTER

FILE INPUT1
EMP-NAME 01 10 A
EMP-NO 11 09 A
DEPT 21 10 A
DOJ 31 10 A
EMP-SAL 45 05 A

JOB INPUT INPUT1

PRINT EMPRPT

REPORT EMPRPT LINESIZE 80 PRINTER PRINT001
SEQUENCE EMP-NAME
CONTROL FINAL DEPT NOPRINT

TITLE 01 'EMPLOYEES'
TITLE 02 'EMPLOYEES OF DEPT :' DEPT
LINE 01 EMP-NAME EMP-NO DEPT DOJ EMP-SAL

/* End of EZT Code
//*

In above code PRINT001 is the Flat file.

Let me know if anyone has any other alternative way...

Thanks to everyone and especially CICS Guy...
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Wed Apr 23, 2008 7:34 pm
Reply with quote

CICS Guy wrote:
lcmontanez wrote:
You may also want the noheading/space options added to the report line.
Please inform, how would that help, I fairly new to EZT, and I'd like to know......


Maybe I misunderstood the requirements....

You can use the report section to create a file without headings and adjusting the space between colums. The carriage control will still appear
but the file can be used as input into another process. This is almost the same as formating a file layout and using a put statement except that
you have a CC and you don't need need to predefine your columns.

I hope this is clear and help your understanding.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 24, 2008 4:15 am
Reply with quote

Jigar Patel wrote:
I got the solution I would like to share with you all ppl...
.
snip
.
Thanks to everyone
Glad to hear that

Bill, just the CICS Guy.......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts is there a way to print time in HH:MM... SYNCSORT 12
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
No new posts Back Page print direction (Duplex Pri... JCL & VSAM 3
Search our Forums:

Back to Top