add 1 to date

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
louisborder
Member
Posts: 1
Joined: Sat Nov 17, 2012 1:37 pm

Post by louisborder » Sat Nov 17, 2012 2:44 pm

hi
I have a date field declared as packed field of 9, and date is declared as mmddyyyy format. My requirement is such that i need to pick the date field and 1 day to it. For example if the date is '02032012' i need to add 1 day to it and end result should be '02042012'. how to resolve this

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sat Nov 17, 2012 2:56 pm

If you've a new question please start a new thread. And this is confusing
date field declared as packed field of 9, and date is declared as mmddyyyy format.
Can you please tell us the COBOL equivalent definition of the date field?
Regards,
Anuj

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sat Nov 17, 2012 3:45 pm

Well, you cannot do it with JCL so what other options are you willing to look at? A sort product? In which case specify which as the sort forum is for all brands of sort). A programming language?
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sat Nov 17, 2012 9:07 pm

Welcome to the forum.

When you have a question, you should start a new topic for your question rather than reply to a topic with a subject that has nothing to do with your questin and has been inactive for years.

You mention a field of '9' but only mention mmddyyyy. Probably a leading zero?

As you tagged onto a topic n the JCL part of the forum, i suspect you want to use some utility submitted via some JCL. Most people would probably use their sort product. Your topic has been relocated to that part of the forum.

Which sort product is used on your system?
Have a good one

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others