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:
Kezia West
Past 24 Hours:
1
Prev. 24 Hours:
0
Overall:
5246
People Online:
Visitors:
410
Members:
0
Total:
410
Online Now:
New Topics
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
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: 3351
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: 3351
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: 3351
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.