|
View previous topic :: View next topic
|
| Author |
Message |
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
| Is it possible to restore jobs in JHS using some JCL for automation purposes? |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month

Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi Suvarna,
Could you elaborate your problem?
What is this JHC?
Regards
Rupesh |
|
| Back to top |
|
 |
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
| JHS is the job history . That is after completion of a job they are moved to a job history for future reference.Later they will be migrated. Now I have to manually restore the jobs by giving 'R' for each job. I want to know if it is possible to restore them automatically by using JCL or REXX or by some other means/ |
|
| Back to top |
|
 |
bnsahoo
New User
Joined: 06 Jun 2005 Posts: 18 Location: mumbai,india
|
|
|
|
| how can we see JHS? |
|
| Back to top |
|
 |
suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
Hi Guys
I have found the solution for this.There is an option called AUTORESTORE which helps in this.
//JHSPRIN1 EXEC PGM=JHSPRINT
//SYSPRINT DD SYSOUT=*
//OUTFILE DD DSN=OUTPUTFILE,
// DISP=(NEW,CATLG,DELETE),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(06162005) FROMSTARTTIME(0001) -
TOSTARTDATE(06162005) TOSTARTTIME(2359) DSID(00004) -
LOGOFF |
|
| Back to top |
|
 |
|
|