AAAA , k1256 is missing
BBBB , achieved ydt
CCCC , result set to NO
DDDD , invalid pro code
[/code]
result :
Code:
9----+----0----+----1----+----2----+----3----+-
fileA no date ind msgcod msg1
100054,000, ,20070503,N, BBBB ,achieved ydt
AAAA ,k1256 is missing
100054,000 ,20071503,N, AAAA , k1256 is missing
CCCC , result set to NO
[/code]
Totally msg codes are 5. msg1 to msg5. Some rows have only one msg1 . some may have all the five.
Using splice, I matched for one error code per record. But more than one matching for the same record, can anyone let me know how to handle this in DFSORT
----+----0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----
fileA no date ind msg1 msg1 desc msg2 msg2 desc msg3 mesg3 desc
100054,000, ,20070503,N, BBBB ,achieved ydt AAAA ,k1256 is missing
100054,000 ,20071503,N, AAAA , k1256 is missing CCCC , result set to NO
It can also have this format. either of the two formats are fine.
second file
RECORD COUNT = 455 rows
recl = 80
rcfm = FB
msg cod starts at position 1 having 4 char size
msg description starts at 11 and has 25 char size
AAAA ,k1256 is missing
BBBB ,achieved ydt
CCCC ,result set to NO
DDDD ,DEW set to NO
msg-cd(from 1 to 5) in first file should be matched with msgcode(pos 1,4) in second file and picks msg description(pos 9,25) and paste it in the first file correspondingly.
Intention is to expand each MSG-CD in file 1 with respect to matching file2 description.
Any possible format which looks understandable is fine.
Easytrieve can also be an option. Preferrably, would like to have in our DFSORT utilities.
Thanks for the solution, Kolusu.
I have used EZACFSM1 in this shop to create time stamp &HR &MIN.....
But Iam not able to find the loadlib and the program EZTPA00. Trying to locate the loadlib. Not sure its applicable in our side.
Iam not able to issue the loadlib and the ezetrieve program.
Please help.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue May 22, 2007 3:34 pm Post subject:
Quote:
I have used EZACFSM1 in this shop to create time stamp &HR &MIN.....
But Iam not able to find the loadlib and the program EZTPA00. Trying to locate the loadlib. Not sure its applicable in our side
radkrish,
EZACFSM1 has got nothing to do with EASYTRIEVE. Easytrieve is a reporting tool/language and it is a CA-product. I don't know how your easytrieve is set up in your shop.
Does your shop even have easytrieve installed? When I asked the question about easytrieve you said it is OK. Did you run any easytrieve programs before ?
I searched all libraries, but no luck on it. didn't get any usefull information from them. It seems that they haven't come across such requirement and haven't used it before on their own.
would like to get help here. If you have DFSORT logic, I will try that too.
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