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:
Chris Radcliffe
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5187
People Online:
Visitors:
243
Members:
0
Total:
243
Online Now:
New Topics
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
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
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
1348
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 Systems Administration
Help with grep
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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).
You are not authorized to post a reply.