View previous topic :: View next topic
|
Author |
Message |
Jigar Patel
New User
Joined: 21 Apr 2008 Posts: 2 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Quote: |
FILE OUTPUT1 PRINTER |
try this instead
FILE PRINTER OUTPUT1 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
You may also want the noheading/space options added to the report line.
Read the manual. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
Jigar Patel
New User
Joined: 21 Apr 2008 Posts: 2 Location: India
|
|
|
|
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 |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
|