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 

Creating a file with CCYYMMDD, e.g Sample.test.CCYYMMDD

 
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
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Wed Jan 23, 2008 5:40 am    Post subject: Creating a file with CCYYMMDD, e.g Sample.test.CCYYMMDD Reply with quote

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
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jan 23, 2008 6:06 am    Post subject: Reply with quote

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


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Wed Jan 23, 2008 6:37 am    Post subject: PROC, SYSIN Reply with quote

I have proc, sysin in control cards, not sure if INTRDR is a option . Please help.
Back to top
View user's profile Send private message Send e-mail
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Jan 23, 2008 7:03 am    Post subject: Reply with quote

Rajkannan,

Check the below link

http://mvsforums.com/helpboards/viewtopic.php?t=2101&highlight=date
Back to top
View user's profile Send private message Send e-mail
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Wed Jan 23, 2008 8:39 am    Post subject: Can i Get CCYYPrevMonthLastDay Reply with quote

went thru mail chain, Can u tell me if I can get CCYYMMDD for Currentyearpreviousmonthlastday
Back to top
View user's profile Send private message Send e-mail
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Wed Jan 23, 2008 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Jan 23, 2008 9:45 am    Post subject: Re: Can i Get CCYYPrevMonthLastDay Reply with quote

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
View user's profile Send private message Send e-mail
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Jan 23, 2008 9:49 am    Post subject: Reply with quote

Rajkannan wrote:
Control cards which is in proc


CONTROL CARDS in a PROC, I don't think so.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Jan 23, 2008 10:39 am    Post subject: Reply with quote

You also need to look at the rule for dataset names.
Back to top
View user's profile Send private message
Rajkannan
Beginner


Joined: 02 Jun 2004
Posts: 64
Topics: 31

PostPosted: Thu Jan 24, 2008 12:52 am    Post subject: Reply with quote

Its a NDM Job
Back to top
View user's profile Send private message Send e-mail
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