Schedule any JCL program at a specific time



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Re: TWS job scheduling

Postby apru » Wed Mar 12, 2014 3:09 pm

Sorry BlackHorn..Actually I was able to schedule applications till yesterday..When I suddenly faced this problem today morning,I got a doubt that it was a result of deleting the current plan.When I asked the scheduling team,they told the same.But few minutes back they confirmed that the error was due to scheduler error..They have resolved it and now it is working fine... :D
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Re: TWS job scheduling

 

Re: TWS job scheduling

Postby apru » Thu Mar 13, 2014 11:36 am

Hi
In the other post about TWS Job scheduling,I read about the PIF interface command to print the error information about a job.I just tried the following code in JOBLIB alloted for OPC and submitted it ,but faced some issues..code snippet goes this way:

//STEP010 EXEC PGM=EQQYCAIN,PARM...,REGION=2M
//EQQMLIB DD DISP =...,DSN=......
//STEPLIB DD DISP =...,DSN=......
//BATCHL DD SYSOUT=*
//OI DD SYSOUT=*
//CPOC DD SYSOUT=*
//CPOP DD SYSOUT=*
//DATAFI DD SYSOUT=*
//EXPORTAD DD SYSOUT=*
//EXPORTOI DD SYSOUT=*
//ERREUR DD SYSOUT=*
//EQQMLOG DD SYSOUT=*
//EQQDUMP DD SYSOUT=*
//SYSPRINT DD DSN=.....,DISP=......,SPACE=.....,DCB=......,
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
ACTION=LIST,RESOURCE=CPOPCOM,JOBNAME=GDCPY,STATUS=E
/*


But the program got abended with S106....

details:
PIF interface INIT OPC=OPCC,RC=0
ERROR WORD=E
LIST CPOPCOM RC=0110
PIF INTERFACE TERM OPC=OPCC,RC=00
STEP010 WAS EXECUTED ,COND CODE=0110
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby apru » Thu Mar 13, 2014 11:49 am

1.Will this utility print the entire contents of spool in the dataset or just the error code??

2.Can we include this utility in every job scheduled using OPC???
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby Blackthorn » Thu Mar 13, 2014 3:04 pm

You are a missing a period from the end of your SYSIN statement. That's why it is not working.

No, it's a TWS enquiry. It will print everything that TWS knows about the job which does not include the output from the spool.

You could, but why on earth would you want to?
Blackthorn
 
Posts: 98
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 0 time
Been thanked: 2 times

Re: TWS job scheduling

Postby apru » Thu Mar 13, 2014 3:29 pm

Thanks a lot Blackhorn.

1.I wanted to know that suppose there are many jobs with the same name,what changes should I make in the code to fetch only the details of the last run job with the same name???

2.If I want only the current status and error code of the job,will making changes in the RESOURCE parameter and changing the ACTION to select help???
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby Blackthorn » Thu Mar 13, 2014 3:43 pm

The last run would be tricky, you'd just have to enquire on them all and work out which was the last. But if you knew which one you were interested in, just specify the input arrival argument on your parameter list - IA=yymmddhhmm.

If this enquiry job is running in the same application as your failed job, the input arrival date and time can be passed in as variables on the jobcard which TWS will resolve.
Blackthorn
 
Posts: 98
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 0 time
Been thanked: 2 times

Re: TWS job scheduling

Postby apru » Thu Mar 13, 2014 4:10 pm

ohkk..thanks...The addition of input arrival time seems to be a good option.

Any inputs from you regarding the extraction of just error code and current status using the EQQYCAIN utility???/
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby Blackthorn » Thu Mar 13, 2014 4:25 pm

You'll need to run the output from EQQYCAIN through Rexx or another utility of your choice to get the data you're interested in.
Blackthorn
 
Posts: 98
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 0 time
Been thanked: 2 times

Re: TWS job scheduling

Postby apru » Fri Mar 14, 2014 9:59 am

Ohkk..In the report is it possible to get the step where the error occured????
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby NicC » Sat Mar 15, 2014 4:56 pm

Topic locked. Apru has gone and started up on another forum.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Previous

Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post