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

want to copy the records older than 180 days


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kusmaravi

New User


Joined: 08 May 2010
Posts: 5
Location: hyderabad

PostPosted: Wed Oct 27, 2010 9:56 pm
Reply with quote

I want to copy the records from the file of 180days old by comparing a date field on position which is in the format of CYYMMDDS , cannot find sort operand of this particular format in PD, Y'date1' is only considering the ZD format, I want the sort operand which will consider the PD format.

In the PDO fromat it drops C and S still if some body suggests the sort operand which only considers the P(YYMMDD) is fine.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Oct 27, 2010 10:29 pm
Reply with quote

It's not clear what your CYYMMDDS values look like. Please post some examples of these values in hex.

Also, give the starting position and length of the field.
Back to top
View user's profile Send private message
kusmaravi

New User


Joined: 08 May 2010
Posts: 5
Location: hyderabad

PostPosted: Thu Oct 28, 2010 8:44 am
Reply with quote

C stands for century 1>2000 0< 2000, and I want to compare from217 .

position Ex: c1100825. c stands for the sign and one stands for the century remaining yr,month, date.

ex: date1p gives yyyymmdd format in packed, I want for the cyyyymmdds format operand in packed
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 28, 2010 8:53 am
Reply with quote

Hello,

Quote:
It's not clear what your CYYMMDDS values look like. Please post some examples of these values in hex.

Also, give the starting position and length of the field.

Post some sample input records and the output you want from that sample input.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top