IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Restoring jobs in JHS using JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suvarna

New User


Joined: 24 Aug 2005
Posts: 13

PostPosted: Wed Aug 24, 2005 10:04 am
Reply with quote

Is it possible to restore jobs in JHS using some JCL for automation purposes?
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Aug 24, 2005 11:28 am
Reply with quote

Hi Suvarna,

Could you elaborate your problem?

What is this JHC?

Regards
Rupesh
Back to top
View user's profile Send private message
suvarna

New User


Joined: 24 Aug 2005
Posts: 13

PostPosted: Wed Aug 24, 2005 2:41 pm
Reply with quote

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

New User


Joined: 06 Jun 2005
Posts: 18
Location: mumbai,india

PostPosted: Wed Aug 24, 2005 3:34 pm
Reply with quote

how can we see JHS?
Back to top
View user's profile Send private message
suvarna

New User


Joined: 24 Aug 2005
Posts: 13

PostPosted: Mon Sep 19, 2005 10:14 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
Search our Forums:

Back to Top