Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Infor / Lawson Platforms
S3 Systems Administration
Help with grep
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:
287
Members:
0
Total:
287
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
Infor / Lawson Platforms
S3 Systems Administration
Help with grep
Please
login
to post a reply.
6 Replies
0
Subscribed to this topic
27 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
mikeP
Veteran Member
Posts: 151
1/2/2014 6:11 PM
Lawson 9 on Windows 2008 Server.
I have a Lid session open and would like to use grep. There's no docs for syntax in anything I could find at Inforxtreme, but I was hoping for it to throw me a bone and display a bit more that the one line "Usage" sytax that's displayed when invoked it with no arguments.
I tried "help grep" which did't work, but Lid graciously suggested I try "grep /?". This puts it in mode where keeps accepting keyboard input, including CR/LF.
It wants something to terminate that mode, but apparently I don't have anything it likes, because nothing I tried works. I found Unix manuals that say Ctrl-Z should work, but not for me.
Can someone point me to a syntax reference for Lawson grep?
Thanks
EricS
Veteran Member
Posts: 80
1/2/2014 6:30 PM
Ctrl-d should end the input. Just Google grep you'll find the man pages out there. This is, though I could be wrong, a cut down version of Unix. Last I tried it grep did not work anything like what it did on AIX or HP/UX.
The.Sam.Groves
Veteran Member
Posts: 89
1/2/2014 6:43 PM
My understanding is that on Windows servers, the unix utils being used by Lawson are essentially stock cygwin. So if you are looking for documentation that should help.
Cntl-D is the EOF signal in Unix environments and Cygwin consoles. In Windows/DOS it's Cntl-Z
followed by
an enter, Cntl-Z on it's own doesn't cut it.
mikeP
Veteran Member
Posts: 151
1/2/2014 6:53 PM
Thanks guys. Neither Ctrl-D not Ctrl-Z [Enter] seems to work. Maybe I could approach this another way. What I'd like to do is find the source for copybooks and libraries in order to trace out some program logic. I'm looking at the cobol source PR278PD. I makes several procedure calls that I can't find under the prod or pdlib folders, and I was trying to use grep to find them. One example is
PERFORM 840-FIND-PRSSET1
I've already tried creating the program shell with bldsh, but it barfs with errors like this:
open(D:\lawdev\law/dev/prsrc/PR278.lkf) failed - Permission denied
We're hosted by Lawson Manged Services, and they keep us pretty well locked out of anything fragile.
Any ideas as to where this type of source might be located?
Greg Moeller
Veteran Member
Posts: 1498
1/2/2014 8:52 PM
Here's the output that I get when running bldsh on PR278 - Hopefully this will help.
bldsh lprod pr pr278
rptgen -t LPROD PR PR278
Processing /lawson/apps/lprod/prsrc/PR278.rpt
Created RptMap: PR278 and Archive RptMap: PR278.1379903169.rmp
Created rd File: /lawson/apps/lprod/prsrc/PR278.rd
Building COBOL Shell
Processing PgmInfo Request ...
bismark LPROD PR PR278
Syntax Check /lawson/apps/lprod/prsrc/PR278WS
Syntax Check /lawson/apps/lprod/prsrc/PR278PD
Syntax Check /lawson/apps/lprod/hrsrc/hrpdlib/HRFN70CP
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HRCOMWS
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HRDICTWS
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HREMPWS
Syntax Check /lawson/apps/lprod/pasrc/pawslib/PAPOSEMPWS
Building Int From PR278PD, PR278WS, PR278SD, PR278.rd, wslibs & workfiles
Building /lawson/apps/lprod/sdlib/PR278SD
Build Of Int Complete For PR278
bismark -PHRFN70CP lprod
Syntax Check /lawson/apps/lprod/hrsrc/hrpdlib/HRFN70CP
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HRCOMWS
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HRDICTWS
Syntax Check /lawson/apps/lprod/hrsrc/hrwslib/HREMPWS
Syntax Check /lawson/apps/lprod/pasrc/pawslib/PAPOSEMPWS
Syntax Check /lawson/apps/lprod/hrsrc/hrpdlib/HRFN70CP
Building Int From HRFN70CP, wslibs & workfiles
Build Of Int Complete For HRFN70CP
Editing PGM: PR278
Editing PD: HRFN70CP
Building /lawson/apps/lprod/prsrc/PR278.cbl
Building /lawson/apps/lprod/prsrc/PR278.etb
mikeP
Veteran Member
Posts: 151
1/3/2014 1:20 PM
Thanks Greg.
Managed serivces made a security change, and I was able to build the shell, and got similar output. I searched the files that were "syntax checked" and none include the source for some of the routines that were included in the built .cbl file, so that's still a mystery, but the main thing is that I can examine the full source. Now the fun begins.
Stuart Perkins
Basic Member
Posts: 18
3/10/2014 11:20 AM
The 800 series routines are database io routines. 800-create-tablename, 810-recreate-tablename 820-store-tablename 830-delete-tablename 840-find-indexname 850-find-nlt-indexname 860-find-next-indexname etc...
The "source code" for these is not stored anywhere that I know of, and is generated on the fly. These routines are built into the build shell routine (bismark), and into the runtime monitor (lapm).
Please
login
to post a reply.