Page 5 of 5

Re: TWS job scheduling

PostPosted: Wed Mar 12, 2014 3:09 pm
by apru
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

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 11:36 am
by apru
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

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 11:49 am
by apru
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???

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 3:04 pm
by Blackthorn
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?

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 3:29 pm
by apru
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???

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 3:43 pm
by Blackthorn
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.

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 4:10 pm
by apru
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???/

Re: TWS job scheduling

PostPosted: Thu Mar 13, 2014 4:25 pm
by Blackthorn
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.

Re: TWS job scheduling

PostPosted: Fri Mar 14, 2014 9:59 am
by apru
Ohkk..In the report is it possible to get the step where the error occured????

Re: TWS job scheduling

PostPosted: Sat Mar 15, 2014 4:56 pm
by NicC
Topic locked. Apru has gone and started up on another forum.