MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Day of the Week from Jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Wed Nov 23, 2005 2:25 am    Post subject: Day of the Week from Jcl Reply with quote

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
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 23, 2005 2:28 am    Post subject: Reply with quote

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


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Wed Nov 23, 2005 2:49 am    Post subject: Reply with quote

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


Joined: 21 Oct 2005
Posts: 6
Topics: 1

PostPosted: Wed Nov 23, 2005 4:58 am    Post subject: Reply with quote

hi....
I hope following link will be helpful,
http://www.mvsforums.com/helpboards/viewtopic.php?t=4241&highlight=week

Have a great day.....
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 23, 2005 5:24 am    Post subject: Reply with quote

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


Joined: 21 Oct 2005
Posts: 6
Topics: 1

PostPosted: Wed Nov 23, 2005 5:36 am    Post subject: Reply with quote

There was a JCl solution mentioned by Kolusu in the link given.Pls go through it.

Thanks...Have a great day.
Back to top
View user's profile Send private message
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Wed Nov 23, 2005 6:06 am    Post subject: Reply with quote

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


Joined: 23 Dec 2005
Posts: 83
Topics: 2
Location: Caracas, Venezuela

PostPosted: Fri Dec 30, 2005 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group