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

conditional copy of records from file A to file B


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

New User


Joined: 14 Sep 2007
Posts: 30
Location: Bangalore

PostPosted: Tue Apr 28, 2009 2:34 pm
Reply with quote

Hi,

i need to compare header record of file A and FILE B.

if header A > HEADER B

copy file A to file B

else

sent an email.

end

how can i do this via ICETOOL

REGARDS
_________________
Neelima Sinha
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Apr 28, 2009 4:27 pm
Reply with quote

neelima.sinha wrote:
if header A > HEADER B
You need to do a better job in explaining when this condition stands true?

1. "Header" is general term; there might be other fileds which constitute it - how do you want to compare them and when do you say A is greater than B?
2. What is the LRECL & RECFM of input and output?
Back to top
View user's profile Send private message
neelima.sinha

New User


Joined: 14 Sep 2007
Posts: 30
Location: Bangalore

PostPosted: Tue Apr 28, 2009 4:43 pm
Reply with quote

hi,

the record looks like this

GRXL06 2009042719:39:52

both file has same format and need to compare the date in both file

if file a date > file b date

copy file a to file b

else

empty file b

end-if
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 Binary File format getting change whi... All Other Mainframe Topics 7
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
Search our Forums:

Back to Top