IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort YYYYMMDD to Day of Week


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramsri

Active User


Joined: 18 Oct 2008
Posts: 380
Location: India

PostPosted: Sat Apr 24, 2010 7:18 pm
Reply with quote

Would you please give me the code to convert a date in YYYYMMDD format to day of week.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 24, 2010 7:38 pm
Reply with quote

What research have you done yourself already?

When you say you want "the code" -- are you talking COBOL? SAS? JAVA? PL/I? ASSEMBLER? FORTRAN? REXX? CLIST? Something else entirely?

Finally, this is a HELP forum, not a DO-YOUR-JOB-FOR-YOU forum. We can help you with coding problems, but we don't provide code unless you are willing to pay the going daily rate for professional consulting (typically about 1000 U.S. dollars per day).
Back to top
View user's profile Send private message
ramsri

Active User


Joined: 18 Oct 2008
Posts: 380
Location: India

PostPosted: Sat Apr 24, 2010 7:40 pm
Reply with quote

When I typed, I typed more than a single line that has appeared here !!!

I was looking for a SORT and COBOL intrinsic functions that could do this.

Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 24, 2010 8:27 pm
Reply with quote

Google is your friend. What you are looking for is called "Zeller's Congruence" and Googling zeller's congruence returns 13,700 hits and several on the first page will give you the exact formula to use. It is easily implemented in COBOL or any other procedural language.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top