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 Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
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
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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