Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
S3 Customization/Development
How do I view sortfile data while debugging?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Starr
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5327
People Online:
Visitors:
156
Members:
0
Total:
156
Online Now:
New Topics
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
S3 Customization/Development
LP01 hiding a PTO plan from the list
8/13/2025 4:44 PM
Hi all. is there a way to hide a specific PTO&n
Lawson Business Intelligence/Reporting/Crystal
GLTrans - PO Line/MAInvdtl
8/6/2025 6:13 PM
Hello, we have an existing tabular model for fina
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
Lawson Portal
Lawson ESS customization
6/23/2025 10:28 AM
I want to add new links and customize the ESS (sel
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3293
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
S3 Customization/Development
How do I view sortfile data while debugging?
Please
login
to post a reply.
8 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Woozy
Veteran Member
Posts: 709
2/1/2013 5:36 PM
I am debugging a custom program that utilizes a very wide sort file. Is there any way for me to see what is in that file while I'm debugging other than the little-tiny query variable display window in LID? I need to be able to view/compare records within that file.
Does anyone have any magic they can share? Thanks!
Kelly
We're on DB2 AIX (Unix), if that matters.
John Henley
Posts: 3362
2/1/2013 6:08 PM
Split
Have you tried this: set a breakpoint after the sort but before the sorted file is opened, then from another process, copy the file and view it using a text editor?
Woozy
Veteran Member
Posts: 709
2/1/2013 6:18 PM
Split
Thanks John - that's exactly what I'd like to do. My problem is, where do I copy the file from? How do I find out where it lives?
John Henley
Posts: 3362
2/1/2013 6:40 PM
Split
Are you trying to see the *actual* sort file, or the results after the sort?
Are you using PROCEDURE/OUTPUT PROCEDURE or SORT ... USING ... GIVING ?
Woozy
Veteran Member
Posts: 709
2/1/2013 7:00 PM
Split
I just want to see the records in the file - I don't care if it is before or after the sort. The sortfile is defined in workdef.
Here is how the sort is being done:
SORT ZA307SRT-FILE
ASCENDING KEY DSRT-BEN-EMPLOYEE
DESCENDING KEY DSRT-BEN-START-DATE
ASCENDING KEY DSRT-BEN-PRE-SEQ-NBR
DSRT-BEN-AFT-SEQ-NBR
DSRT-BEN-CMP-SEQ-NBR
INPUT PROCEDURE 1000-SEL-REPORT
OUTPUT PROCEDURE 2000-DO-REPORT.
Here is a screenshot of the workdef for the sortfile.
John Henley
Posts: 3362
2/1/2013 8:07 PM
Split
The sort files are in the /tmp directory (or $TMPDIR if you have the variable set). If you can set a breakpoint, and check the temp directory you should be able to see the file by date created, etc. Another option, depending on how much time you have, is to change to use the SORT...USING / GIVING, which uses a separate work file, over which you have control for naming.
Woozy
Veteran Member
Posts: 709
2/1/2013 8:50 PM
Split
Hmmm. I'm not finding anything in the tmp directory, and $TMPDIR isn't set. I set a breakpoint at a place where the file should exist, but I'm not seeing it. Very strange.
I resorted to doing a "display" statement and then cutting/pasting from the job log. I guess that will work if I am limiting my data selection. I may try your other suggestion too, if I can scrounge the time to convert it.
Thanks for your help anyway!
Kelly
Greg Moeller
Veteran Member
Posts: 1498
2/1/2013 9:19 PM
Split
Check your $LAWDIR/prodline/work directory... that seems to be where all of our tmp files get created.
Woozy
Veteran Member
Posts: 709
2/1/2013 10:13 PM
Split
Hi Greg - I checked there too, and I'm not seeing the files there either, though that is where our other tmp files go.
Please
login
to post a reply.