Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Mon Mar 03, 2003 10:01 am Post subject:
Rajeev,
If I understand correctly, all you need is to remove the space between the 2 and 3rd variable. Is that right??
If that is the case then, the following JCl will give your the desired results.A brief expalanation of the job. we first take in the input vsam file and split it into 3 files.We also add a seqnum of 8 bytes to the input file which we will later use to put back the file in the same order as the input file.
File T1 will have all the records which have a space in the second variable. ex:
Code:
22222222 ASDFR H
While writting these records we remove the space.
File T2 will have all the records which have a space in the second variable but at a diffferent position. ex:
Code:
33333333 FGHJKP L
While writting these records we remove the space.
File T3 will have all the normal records.
The next step takes in all these 3 temp file concatenated and sorts on the seqnum to get the original order of the input dataset and while writting the output removes the seqnum.
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Tue Mar 04, 2003 8:16 am Post subject:
Rajeevvasudevan,
Yes it is possible to update the file instead of creating a new one.But it would require an exit to achieve that.If have DFSORT at your shop Frank will be able to help you with the exit.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Mar 04, 2003 12:21 pm Post subject:
Rajeev said "can we update the same File Instead of creating a new File??"
Kolusu said "Yes it is possible to update the file instead of creating a new one.But it would require an exit to achieve that.If have DFSORT at your shop Frank will be able to help you with the exit.
I'm reading Rajeev's request as "if I start with file 'a' as input, how do I end up with an updated version of file 'a', rather than file 'b'. To me, the answer to that question is, "use Kolusu's job with the SORTOUT of STEP200 pointing to your original data set". The original data set will then contain the updated records.
Kolusu, how are you interpreting this request and what would the exit do? (Are you interpreting the request as "how do I do all this in one pass?" or something else?). _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Tue Mar 04, 2003 4:15 pm Post subject:
Frank Yaeger,
Yes you are right on. I intrepreted that rajeev wanted all the update in just one pass of data. I assumed that he does not want any temporary files created in the between and use the same vsam file as input as well as output.
Btw if you haven't noticed the quote feature works fine with this bulletin board.for ex: Hilite any text in my post and just click on "quote selected" in the quick reply box and see what happens.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Mar 04, 2003 4:19 pm Post subject:
Kolusu,
Well, I guess Rajeev will have to tell us what he actually meant.
I've been burned by the quote feature on so many boards, that I'm really leery of using it. But I'll try to remember to give it a try next time I need to quote someone on this board. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Fri Mar 07, 2003 12:48 am Post subject:
Rajeev,
From the listcat messages I don't see any reference that the input file is a VARIABLE BLOCK file. But your sysout shows that RECFM is F(Fixed), so you need to specify the start and length of the fields.
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