View previous topic :: View next topic |
Author |
Message |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Wed Jan 23, 2008 5:40 am Post subject: Creating a file with CCYYMMDD, e.g Sample.test.CCYYMMDD |
|
|
Hi,
I wanted to create a file with CCYYMMDD
e.g Userid.sample.test.ccyymmdd.
How Do I Get CCYYMMDD in a JCL.
My shop uses ICEtool.
Not sure how to use.
Please help , if you know answer. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jan 23, 2008 6:06 am Post subject: |
|
|
there are about 10 thousand threads concerning this. suggest you spend a little time searching. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Wed Jan 23, 2008 6:37 am Post subject: PROC, SYSIN |
|
|
I have proc, sysin in control cards, not sure if INTRDR is a option . Please help. |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
 |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Wed Jan 23, 2008 8:39 am Post subject: Can i Get CCYYPrevMonthLastDay |
|
|
went thru mail chain, Can u tell me if I can get CCYYMMDD for Currentyearpreviousmonthlastday |
|
Back to top |
|
 |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Wed Jan 23, 2008 9:18 am Post subject: |
|
|
on My previous question, Since I have all the files in Control cards which is in proc while submitting thru INTRDR , the proc get's expanded and executed. And also I Just need to change the file name in the control cards with CCYYMMDD parameters as shown in example in mail chain. Please correct me if I am wrong.
And also on Currentyearpreviousmonthlastday is this possible. |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Wed Jan 23, 2008 9:45 am Post subject: Re: Can i Get CCYYPrevMonthLastDay |
|
|
Rajkannan wrote: | went thru mail chain, Can u tell me if I can get CCYYMMDD for Currentyearpreviousmonthlastday |
I don't think Syncsort has the ability to calculate the previous dates.
Thru the below sort card, you can get Currentyearpreviousmonthlastday.
Somehow you have to pass today's date to the sort card. For e.g. if you pass 23 and subtract this from DATE1, then you will get 20071231.
Code: | //SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(1,15,DATE1-23)
//* |
|
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Jan 23, 2008 9:49 am Post subject: |
|
|
Rajkannan wrote: | Control cards which is in proc |
CONTROL CARDS in a PROC, I don't think so. |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Jan 23, 2008 10:39 am Post subject: |
|
|
You also need to look at the rule for dataset names. |
|
Back to top |
|
 |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Thu Jan 24, 2008 12:52 am Post subject: |
|
|
Its a NDM Job |
|
Back to top |
|
 |
|
|