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 

JCL issue

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


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Mon Sep 29, 2003 8:50 am    Post subject: JCL issue Reply with quote

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
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Sep 29, 2003 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Beswar
Beginner


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Mon Sep 29, 2003 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Sep 29, 2003 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Sep 29, 2003 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Sep 29, 2003 1:56 pm    Post subject: Reply with quote

Option C:

Change the program to write the records to two different file names.


Bill
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Sep 29, 2003 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Sep 29, 2003 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Tue Sep 30, 2003 7:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Beswar
Beginner


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Tue Sep 30, 2003 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
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