View previous topic :: View next topic |
Author |
Message |
Phaninder Beginner
Joined: 06 Jul 2005 Posts: 27 Topics: 11
|
Posted: Wed Nov 23, 2005 2:25 am Post subject: Day of the Week from Jcl |
|
|
Hi All,
I have a requirement to set the RC of a step to the Day-of-the-week
Value , i can do it by writing a smal cobol prog and Accept the day 0f week and move the Value to the RC, but is there any way to make it thru Jcl ONLY ? i just wanted to avoid a cobol program for the small reason .
Please let me know if there is any possibility.
Thanks in Advance
---------------------
Phani |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 23, 2005 2:28 am Post subject: |
|
|
Phaninder,
Can you give us a brief as to what you are trying to accomplish. May be there is a better alternative.
Thanks,
Phantom |
|
Back to top |
|
|
Phaninder Beginner
Joined: 06 Jul 2005 Posts: 27 Topics: 11
|
Posted: Wed Nov 23, 2005 2:49 am Post subject: |
|
|
Hi Phantom,
Thanks for your instant response, I need to check what day is today and if today is saturday , i need to avoid a particular step in the jcl , else for the rest of days i can run , now the method i found is i will accept the day of week from the cobol prog and move it to the RC , This will be first step in the jcl, i will have an If condition in the jcl to check weather RC NE 6 and execute the second step.
I want to accomplish this .
Thanks a lot
---------------------------
Phani |
|
Back to top |
|
|
cp Beginner
Joined: 21 Oct 2005 Posts: 6 Topics: 1
|
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 23, 2005 5:24 am Post subject: |
|
|
Phaninder,
One more question. Is this a production job or your own job ? If it is a production job and if you have any job schedulers like CA7 installed in your shop then you use bypass a step based on a schedule ID.
I can't think of any other way now. Probably someone else can help you out.
Thanks,
Phantom |
|
Back to top |
|
|
cp Beginner
Joined: 21 Oct 2005 Posts: 6 Topics: 1
|
Posted: Wed Nov 23, 2005 5:36 am Post subject: |
|
|
There was a JCl solution mentioned by Kolusu in the link given.Pls go through it.
Thanks...Have a great day. |
|
Back to top |
|
|
Phaninder Beginner
Joined: 06 Jul 2005 Posts: 27 Topics: 11
|
Posted: Wed Nov 23, 2005 6:06 am Post subject: |
|
|
Cp and phantom thanks a lot.
I Am using the solution suggested by kolusu already, The jcl given by him is an added advantage ..Thanks a lot .
-----------------
phani |
|
Back to top |
|
|
German Castillo Beginner
Joined: 23 Dec 2005 Posts: 83 Topics: 2 Location: Caracas, Venezuela
|
Posted: Fri Dec 30, 2005 2:15 pm Post subject: |
|
|
I would do an Xtra step invoking a small.... very small Rexx script using Date() as a weapon. It has so many input options, among which, Day-of-week is the one you are looking for. This step may either set a global RC or pass a Parm to your main application program. _________________ Best wishes,
German Castillo |
|
Back to top |
|
|
|
|