View previous topic :: View next topic
|
Author |
Message |
Jerrie
New User
Joined: 30 Dec 2009 Posts: 1 Location: bangalore
|
|
|
|
How to find the day using JCL.
Files are getting created on day basis (sunday ,monday ,tuesday,...etc)
on monday I want to merge the monday's file with sunday's file.
Please help me. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
/RANT ON
Once more let us clarify exactly what JCL is.
it is Job Control Language.
By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.
JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
/RANT OFF
So maybe if you would care to elaborate on exactly which program you wish to execute, then I'm sure some help will be found. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
As you have stated your question, it cannot be done. JCL does not have any date symbolic symbols so you cannot tell Sunday from Wednesday. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Often people decide on some solution(Which can not be actually solution) for some problem and then ask how to achieve that solution.
Rather they should state the problem here. May be people here can give better\ correct\ efficient solutions and the way to achieve that too... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
I need to agree with Robert and expat. However, tell us how do you identify files was created on some particular day - do you populate some date-field in the file itself? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Sambhaji, a significant percentage of the postings on this forum are from people who have decided how they're going to solve their problem and want help implementing their chosen solution (whether or not that solution makes sense, is efficient, or even can be done at all). They're usually the ones arguing that they "have" to use X method. While it would be nice if they started posting the problem instead of the problems they're having implementing their solution, I suspect that's not likely to change anytime soon. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
Anuj Dhawan wrote: |
However, tell us how do you identify files was created on some particular day - do you populate some date-field in the file itself? |
The data set label; I can think of a couple-three ways to read it off the top of my head. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
the best way would be to use Your scheduler variable substitution facility,
speak to Your support. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
the best way would be to use Your scheduler variable substitution facility, |
I agree on this Enrico.
It is too site specific but we do have similar thing at our shop. We use CA7.
We have 7 different schedule id running for all days of week from 11 through 17
Code: |
#JI,ID=11
//PROC0010 EXEC MYPROC,DAY=MON
#JI,ID=12
//PROC0010 EXEC MYPROC,DAY=TUE
#JI,ID=13
//PROC0010 EXEC MYPROC,DAY=WED
#JI,ID=14
//PROC0010 EXEC MYPROC,DAY=THU
#JI,ID=15
//PROC0010 EXEC MYPROC,DAY=FRI
#JI,ID=16
//PROC0010 EXEC MYPROC,DAY=SAT
#JI,ID=17
//PROC0010 EXEC MYPROC,DAY=SUN
#JEND
//*
|
Here DAY symbolic parameter gets value based on Schedule ID |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
If you're running CA-7, you can use their CARPROC to create symbolic variables including DAY (which is the day of the week). If the original post had mentioned CA-7, instead of just JCL, the issue would be resolved by now. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
Quote: |
If the original post had mentioned CA-7, instead of just JCL, the issue would be resolved by now. |
How are our psychic abilities supposed to be kept sharp then? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Akatsukami - the way question is stated, I'd like to stay on safe side and during this year-end would not like to sound psychic to understand the question - before I could suggest something nice, I wanted to understand the question first and so the statement...
See the responses so far, we're at CA-7 suggestion and we started from JCL... |
|
Back to top |
|
|
|