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 

JCL Utility

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
saravanan80
Beginner


Joined: 25 Dec 2006
Posts: 14
Topics: 6

PostPosted: Mon Sep 24, 2007 11:34 am    Post subject: JCL Utility Reply with quote

Is there any JCL command to convert the date from

Gregarian Format to Julian Format .

Julian format to Gregarian Format.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Sep 24, 2007 11:53 am    Post subject: Reply with quote

Please show an example of the input and output date values for each case.

Please give the starting position, length and format of the input and output date fields for each case.

Please give the RECFM and LRECL of the input file.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
saravanan80
Beginner


Joined: 25 Dec 2006
Posts: 14
Topics: 6

PostPosted: Mon Sep 24, 2007 12:14 pm    Post subject: Reply with quote

The format is

Julian --- 2007 152

it means the year 2007 and 152nd day
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Sep 24, 2007 1:03 pm    Post subject: Reply with quote

That doesn't answer my questions (e.g. is that CH format, ZD format, PD format, something else? what is the starting position? what is the length? what would the output look like? etc). Please read my post again and answer ALL of the questions. If you can't find the time to answer ALL of my questions, then I can't find the time to help you (but maybe somebody else can).
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
saravanan80
Beginner


Joined: 25 Dec 2006
Posts: 14
Topics: 6

PostPosted: Mon Sep 24, 2007 1:22 pm    Post subject: Reply with quote

HOw to covert from Julian date(2007119) to Gregorian(2007/04/29) date using JCL.

I have an input contains like Current date,next date are in Julian formate.

2007119 2007120


I want display report(from julian to Gregorian) like:

Current_date Next-Date
2007/04/29 2007/04/30
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Sep 24, 2007 2:09 pm    Post subject: Reply with quote

What Frank is asking for is the data type!

In your file, is the field:
- packed decimal x'2007119F', or
- zoned decimal x'F2F0F0F7F1F1F9', or what?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Sep 24, 2007 2:26 pm    Post subject: Reply with quote

No - there is not a JCL command to convert dates - JCL tells the computer what programs to run. Rexx will very nicely do conversions on dates, most other languages need a bit of coding. But, enterprise compiled languages may have access to nifty date routines that I am not aware of as we are not that advanced in our place.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Sep 24, 2007 3:13 pm    Post subject: Reply with quote

I thought this looked familiar. I actually answered this exact same question a while back:

http://www.mvsforums.com/helpboards/viewtopic.php?t=8290&highlight=nextdate

Is this a class exercise? If so, you really should do your own homework.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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