Posted: Fri Jul 21, 2006 1:52 am Post subject: Extract particular records from VB to FB
HI,
I have a VB input file(sortin) from which I have to copy only the accounts to output FB file. In the input VB file, the acct starts from 13(9+4) with lengh of 13. And also I need the accts with non-spaces at 983-985. so I added a check for non-space in the 983 location.
Please see the file details which I have quoted down.
I need only these accouts in the output file.
Could you please correct the OUTREC field.
Also can I keep the LRECL = 13 for FB output file as I need only the ACCTS.
I am using IERRCO00 which i believe is equivalent to SORT.
Any help is appreciated. Thanks.
I had never used IERRCO00 but i have tried in this example.I am creating a new VB File as i did not have a VB File earlier from the STEP010 and then i am using the VB file as input in STEP020 for generting a FB File with LRECL=13 and i am assuming spaces not to occur in pos 22 of the Input FB File in STEP010.Hope it helps.
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
200510030900140004357.090014000435709001400043570030900140004
200510030900140006361.090014000636109001400063610030900140006
20051003210A290000406.210A290000406210A290000406003210A290000
20051003210A290000406.21022201573412102220157341003210A290000
20051003210A290000406.51219300445975121930044597003210A290000
SHEKAR.WORK.FBOUT
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
0900140004357
0900140006361
210A290000406
210A290000406
210A290000406
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