You left out some details so I had to make some assumptions. Also, there are a number of ways to do this. This is just 1 example.
The pointer below assumes the loan officer number is the key to the PR.USER file and the name is in attribute 1 of that file.
atbnoLoanOfficerNo=the attribute no. of the loan officer no. in APPLIC
DICT APPLIC LoanOfficerName
0001: I
0002: OCONV(@RECORD<atbnoLoanOfficerNo>,"TPR.USER;X;1;1")
0003:
0004:Loan Officer Name
0005:30T <--- T will word wrap or you can use L
0006:S
------------------------------
Mark Vander Veen
Project Leader, System Administrator
University of Chicago Press
------------------------------
Original Message:
Sent: 06-15-2021 19:53
From: Francis Aquila
Subject: Create a dictionary that looks for the number description in another file
Hi There,
I have a retrieve sentence that displays the Loan officers number but I also want to display the officer's name. I would like to lookup officer's name in another file. Both files can be related using the operator number.
The file I am using is APPLIC
I need to create a dictionary in that file to lookup the officer's name in PR.USER file.
Name is the ID in PR.USER file.
Sample of my output
APPLIC Id.... LOAN NO. LO_OFFICER APPLIED.... LOAN AMOUNT Sts Branch
31786L1.2 687168 1012 15 JUN 21 1,025.00 5 6
3981L1 687182 1074 15 JUN 21 275.00 5 6
Please if anyone knows how to create this dictionary would be of great help.
Regards
Francis
------------------------------
Francis Aquila
Core Banking Support Officer
TISA
Papua New Guinea
------------------------------