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

Syncsort Date Manipulation - Find number of days.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 496
Location: USA

PostPosted: Thu Sep 09, 2010 9:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
Search our Forums:

Back to Top