View Full Version: Brand New App

LawsonTalk > Coding, Program Errors and Bugs > Brand New App


Title: Brand New App
Description: BRAND NEW APP


klkemp - December 13, 2006 08:43 PM (GMT)
I am trying to create my "first ever" custom cobol application within our Lawson UNIX environment. I created a new System Code, then used PGMDEF to go in and create the app., I actually copied a Lawson app over and renamed it, as I will use this as the basis for actually building the application.

Anyway, I modified the .scr to look like I wanted and started working in the PD to have my logic instead of the original Lawson apps logic (which I copied from).

I am now ready to compile the app and see what errors i am getting etc.

I go to ACTION >> COMPILE >> PROGRAM to compile the application.

MY PROBLEM IS:
I never see the app go into the compile queue,
I never see a .err file generated
I never see a .obj file generated

Is there some type of set-up that I am missing?

Many thanks in advance for your help. :banghead:

Ragu - December 13, 2006 08:49 PM (GMT)
Are you sure have permissions to run qcompile ?
Do you have access to the command line ? If so I woyld try qcompile from the command line and see where that gets you.

klkemp - December 13, 2006 08:53 PM (GMT)
Since I am able to compile all the "standard" Lawson applications via the same PGMDEF >> ACTION >> COMPILE >> PROGRAM
I would assume that permissions would not be the issue.

klkemp - December 13, 2006 08:56 PM (GMT)
When I run qcompile from the command line for this new app, I get the same results as when i go through PGMDEF, nothing happens / gets generated, no *.err, no *.obj etc.

Ragu - December 13, 2006 09:30 PM (GMT)
If you have not already done so, try this:
1. scrgen
2. rptgen
3. bldsh
Maybe one of them will tell you why the qcmpile is not working
Since you created a custom system code, maybe there are key numbers in the .scr file that need to be defined in the custom system

klkemp - December 13, 2006 09:55 PM (GMT)
this is what i got:

kkemp@deuce:/lawdev/apps/crp81/u1src > scrgen -s crp81 U1 U110
open(/lawdev/apps/crp81/u1src/U110.lkf) failed - Permission denied
kkemp@deuce:/lawdev/apps/crp81/u1src >

Ragu - December 13, 2006 11:19 PM (GMT)
according to the support site, .lkf is a lock file created when a process (scrgen in this case) runs and is deleted when the process completes successfully. In this case, looks like a previous instance of scrgen did not complete correctly.

This is what I would try. rename the U110.lkf file. Try scrgen again and see what happens.

klkemp - December 14, 2006 01:10 PM (GMT)
there was never an lkf file created. i'm thinking it must be a UNIX permissions thing. Right now Lawson is the owner of the directory and the files (PD, WS, .scr). Should Lawson be the owner?

klkemp - December 14, 2006 01:35 PM (GMT)
I played with the directory permissions and finally got the compiler to accept my job. Now I am getting the following:

Building /lawdev/apps/crp81/sdlib/U110SD
Warning: Errors found in U110.1
sh: /lawdev/gen/bin/xscrgen: cannot execute
Error - scrgen Failed, Check Your Form File, Unable To Continue
/lawdev/gen/bin/bismark: Error Encountered In Execution
/lawdev/gen/bin/lawosh: Error Encountered In Execution

klkemp - December 14, 2006 01:57 PM (GMT)
I think I found the problem. Thanks for all your suggestions. If I run into more issues I'll yell.
Thanks again!
:coffee:



Hosted for free by InvisionFree