View previous topic :: View next topic |
Author |
Message |
Beswar Beginner
Joined: 04 Feb 2003 Posts: 33 Topics: 15
|
Posted: Mon Sep 29, 2003 8:50 am Post subject: JCL issue |
|
|
Hi
Is there anyway I can send the data two different DD names
i.e
currently we are running one program thorugh JCL and it gives a report. I want to send this report to the file(that will be usefull to see the report later) and at the same time to the SYSOUT( this will be usefull for me to see how much the job was completed)
Is it possible to do this
Thanks
Eswar |
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Sep 29, 2003 10:22 am Post subject: |
|
|
You say "currently we are running one program through JCL". You need to be more specific. Are you using a "home-grown" program to create the report or a generally available utility? If a program, what language is it written in? If a utility, which one? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
|
Beswar Beginner
Joined: 04 Feb 2003 Posts: 33 Topics: 15
|
Posted: Mon Sep 29, 2003 10:32 am Post subject: |
|
|
we wrote a new a COBOL batch program and we used JCL to execute this program
This program creates one output report after reading data from diffrent table.
currently we directing this output the file. As we directed the outptut file, we were not able to open the output file while the jobs is runnning. My requirment was to see the output while it is running, so that I can see the report and if the report is not right I can cancel this job. But I still want to write this report into the file and I can use this file to send the report to the Business users |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Sep 29, 2003 11:26 am Post subject: |
|
|
Beswar,
Put a DISPLAY in the pgm before the write in the pgm and you can see the report data
Hope this helps...
cheers
kolusu |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Sep 29, 2003 1:40 pm Post subject: |
|
|
Hi
Option A
Direct your program output to dataset. Add an IEBGENER step to copy this dataset to SYSOUT.
Option B
Direct your program output to SYSOUT. Write an Edit-Macro to create a dataset from this output after VIEWing it in editor.
O.
________
Scarborough Van Assembly
Last edited by ofer71 on Thu Mar 17, 2011 10:35 am; edited 1 time in total |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Sep 29, 2003 1:56 pm Post subject: |
|
|
Option C:
Change the program to write the records to two different file names.
Bill |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Sep 29, 2003 2:14 pm Post subject: |
|
|
Ofer71:Your option B is only valid in here as eswar wants to cancel the job while it is running, not after it completed successfully.
Bill: I guess you missed the whole-point, Eswar wants to verify the output reports while the JOb is running. If the data is not correct he want to cancel the job. So writting to 2 different files will not help as he cannot browse the dataset while the job is running. |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Mon Sep 29, 2003 2:28 pm Post subject: |
|
|
Kolusu, I think what Bill was refering to was to write one output to the 'physical' file and other(the same data) to the SYSOUT. |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Tue Sep 30, 2003 7:41 am Post subject: |
|
|
We've been battling trying to get programmers to remove display statements from their code for a while. Still we have some that generate 100s of thousands of lines that were put in for debugging purposes. Bad enough that it eats up the jes spool space but then it gets archived forever. So put the display in for now and remove it before it goes production.
What is the normal execution time... 1 hour, 2 hours, 10 hours or what? |
|
Back to top |
|
|
Beswar Beginner
Joined: 04 Feb 2003 Posts: 33 Topics: 15
|
Posted: Tue Sep 30, 2003 8:52 am Post subject: |
|
|
Thank you very much for your information. Usually this jobs runs for from 1 hour to 10 hours depending on number of the input records. Usually we run this job whenver a new customer comes into our system. Hence we need to see the job while the job is running. Hence after reading all the infomration, I would go for creating one more file and i use the new file for sysout
Again thank you very much for helping me
Thanks
Eswar |
|
Back to top |
|
|
|
|