Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort Date Manipulation - Find number of days.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
krk_kumar1

New User


Joined: 14 Mar 2006
Posts: 39

PostPosted: Sun Sep 05, 2010 3:15 am    Post subject: Syncsort Date Manipulation - Find number of days.
Reply with quote

Hi,

My input file has the date in CCYYMMDD format (Start pos:56 , length:5) . Its a packed field and my sort control card already does the following manipulations on that field.

INREC IFTHEN=(WHEN=(56,5,PD,NE,NUM),
OVERLAY=(56:X'000000000F'))

SORT FIELDS=(56,5,PD,A)

OUTFIL FILES=01,
OUTREC=(1:C'##########',
11:C' ',
14:56,5,PD,EDIT=(TTTT/TT/TT)),
SECTIONS=(56,10,SKIP=1L)


In the outrec i need to add another field having the number of days between the system date (&DATE1) and the date in the input file.is it possible using SYNCSORT FOR Z/OS 1.3.2.2R ?

(E,g) If date in the input file is '20100901' and my system date is '20100904' .i need the output file to have the value as 3(IIIIIT edit format).


Note: My input file can have date values as 0000/00/00.
Back to top
View user's profile Send private message

Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Thu Sep 09, 2010 9:26 pm    Post subject:
Reply with quote

The date arithmetic functionality as you have described is not available in SyncSort for z/OS 1.3.2.2.
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us