View previous topic :: View next topic
|
Author |
Message |
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
Hi
I want to print some information from a job. But it so happens that there are more than one job having the same JOBNAME and JOB NUMBER.But the dates are different.
So if I give the date also as the input it should pick that job. It is also enough if it prints the latest job.
eg: PRINT JOB(MOBINSR1) JOBNUMBER(20190)
gives an abend with return code 16 because there are two jobs with the job number 20190 and job name MOBINSR1
NB: The number of jobs that I PRINT using a single JCL is 80. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
I hope u are using the JHS tool from Systemware, if so use this
Code: |
//SYSIN DD *
LOGON SYSTEM(JHS)
OPTIONS OUTFILE(PRINTER) MAXJOBS(999)
PRINT JOB(LSPCPA) -
FROMSTARTDATE(051705) -
TOSTARTDATE(051805) -
DDNAME(SORTXSUM)
LOGOFF
// |
To avoid confusion , please mention the Tool name. |
|
Back to top |
|
|
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
Thank u for your answer. It works |
|
Back to top |
|
|
suganthyprabha
New User
Joined: 28 Jul 2005 Posts: 58
|
|
|
|
Hi suvarna and die7nadal,
Can u guys please tell me using which tool u are doing this Printing of job information?
Thanks and Regards,
Suganhy. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
JHS/XPTR from Systemware |
|
Back to top |
|
|
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
Hi suganthyprabha
I use JHSPRINT to PRINT the job information .
//JHSPRINT EXEC PGM=JHSPRINT
//SYSPRINT DD SYSOUT=*
//OUTFILE DD DSN=Output file,
// DISP=(MOD,CATLG,CATLG),UNIT=(,9),
// DCB=(BLKSIZE=0,LRECL=80,RECFM=FB)
//*
//SYSIN DD *
OPTIONS AUTORESTORE(YES) RESTOREWAIT(10) OUTFILE(OUTFILE)
LOGON SYSTEM(JHS)
PRINT JOB(MOBINSR1) FROMSTARTDATE(06172005) FROMSTARTTIME(0001) -
TOSTARTDATE(06172005) TOSTARTTIME(2359) DSID(00004) -
LOGOFF
Check if it works for you |
|
Back to top |
|
|
shawnack
New User
Joined: 28 Jun 2007 Posts: 4 Location: India
|
|
|
|
I'm getting a "PROGRAM JHSPRINT NOT FOUND" when I'm jemming the JCL. Can you tell me how to find where the "JHSPRINT" program might be located, as in, "Is there any default library for this program?" I'm using the JHS utility from SYSTEMWARE. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forums,
You will get a quicker and probably better answer by asking your system support people - they will know what library contains the program.
Once you know the library, you might add a //STEPLIB DD for that dataset. |
|
Back to top |
|
|
shawnack
New User
Joined: 28 Jun 2007 Posts: 4 Location: India
|
|
|
|
Thanks,
However I'm still unable to get the PDs. Can anyone put a snippet of the JHSPRINT program.... |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
My $.02....
XDC the jobs into members of a PDS.
and do a
Code: |
TSO PRINTDS DATASET('"DATASET"') SYSOUT(C) DEST("PRINTERNAME")
|
Where DATASET is your data set and PRINTERNAME is your local printer connected to the mainframe. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What do you mean by
Quote: |
However I'm still unable to get the PDs |
No snippet will help if you can't access the PDS. Is there some reason you will not get this from the support people there? If you need access permission, your security people should be able to help.
It is ikely that your situation is not understood by everyone here. If you clarify your "inability" to get the pds, we may be able to offer suggestions. |
|
Back to top |
|
|
|