PSST0101

July 6, 2007

HCM9.0: Compiling COBOL

Filed under: COBOL, PeopleSoft HCM 9.0, Server Administration — digitaleagle @ 6:10 am

Here are the commands that I executed in a command window. Adjust the paths as necessary.
set PS_HOME=c:\pshome\hcm90
set PATH=%ps_home%\src\cbl\win32;%path%
set COBROOT=”c:\program files\micro focus\net express\base”
cd %PS_HOME%\setup
cblbld c: \temp\compile

(make sure you have a space between the c: and the \temp\compile)

Here is the output:

ASCII Cobol Compilations Proceeding
Creating Directory c:\temp\compile
Logging progress to file c:\temp\compile\CBLBLD.LOG
COBOL compiler found in “c:\program files\micro focus\net express\base”
The system cannot find the path specified.
Target directory (c:\pshome\hcm90\CBLBINA) exists and is writable

Copying source files …

Building the COBOL targets …
……

That is all there is to it!

3 Comments »

  1. Hi,
    maybe you can help me, what does your COBROOT look like. I had a problem setting up the cobol compiling env on windows and from customer connection they re telling me I should follow the DOS 8.3 directory naming convention for the COBROOT env variable. Mine at the moment is:
    s:\Micro Focus\Net Express\Base

    I don t know how to convert it to the DOS 8.3 convention. It should be like
    s:\Micro~1\Net~1\Base but it s not working…

    thanks in advance!

    Comment by Roger — October 5, 2007 @ 6:07 am

  2. Hi, solved! I reinstalled MicroFocus in a DOS 8.3 directory convention friendly name, s:\NetExpress4, therefore COBROOT=s:\NetExpress4 and it works out of the box now.

    Check on CC Case ID 4625386 - Problem compiling cobol on Windows

    They ll explain better than I did… ;)

    Comment by Roger — October 5, 2007 @ 7:04 am

  3. Thanks Roger for posting the solution.

    I just installed MicroFocus in the default directory, which was c:\program files\micro focus\net express\base. I did have to put quotes around the path because of it though.

    The only way I know to determine the short path is to use a small script. Create a new text file and name it something like shortpath.js. Then, put the following lines in it:
    var fso = new ActiveXObject(”scripting.filesystemobject”);
    var fldr = fso.getFolder(”s:\\Micro Focus\\Net Express\\Base”);
    WScript.echo(”short path = ‘” + fldr.shortpath + “‘”);
    Then, either double click on shortpath.js or at the command line run cscript shortpath.js.

    Using the DOS 8.3 convention does sound like the easiest fix. It is just easier to work with all the way around.

    Comment by digitaleagle — October 5, 2007 @ 8:44 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.