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:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
294
Members:
0
Total:
294
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1354
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Customization/Development
How do I view sortfile data while debugging?
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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
Senior Member
Posts: 3349
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
Senior Member
Posts: 3349
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
Senior Member
Posts: 3349
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.
You are not authorized to post a reply.