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 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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
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 Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm

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