Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Syncsort YYYYMMDD to Day of Week

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort YYYYMMDD to Day of Week
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Sat Apr 24, 2010 7:38 pm    Post subject:
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    Post subject: Reply to: Syncsort YYYYMMDD to Day of Week
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Sat Apr 24, 2010 8:27 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us