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:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
316
Members:
0
Total:
316
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
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
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
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
1372
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: 3353
2/1/2013 6:08 PM
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
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: 3353
2/1/2013 6:40 PM
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
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: 3353
2/1/2013 8:07 PM
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
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
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
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.