Joined: 05 Jun 2007 Posts: 5 Topics: 4 Location: bangalore
Posted: Mon Sep 01, 2008 8:22 am Post subject: How to replace the first 10 records only thru batch file-aid
Hello,
I want to replace some value only in the first 10 records using file-aid. Can any one help me in this matter.
I m using the below replace query.
$$DD01 UPDATE REPL=(51,EQ,C'abcdef',C'000000')
The above query is replacing all the records where it is finding 'abcdef' to '000000'. Could any one tell me what I need to add in this to make it update only first 10 records meeting condition, rest remain intact.
Many thanks _________________ Cheers
----------
Baansal
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Sep 02, 2008 10:34 am Post subject:
baansal,
The following DFSORT JCL will give you the desired results. It uses DFSORT's new FINDREP function available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008). I assumed that your input file length is 80 and is FB recfm.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum