HCM9.0: Compiling COBOL

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!

14 thoughts on “HCM9.0: Compiling COBOL

  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 FocusNet ExpressBase

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

    thanks in advance!

  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… 😉

  3. Thanks Roger for posting the solution.

    I just installed MicroFocus in the default directory, which was c:program filesmicro focusnet expressbase. 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.

  4. Hi,

    I want to install Cobol compiler to run specific absence and payroll processes.I have install peoplesoft on laptop both appication designer and PIA are working well.

    I got both the cds of cobol installable, what I should install Net express professional edition, net express or enterprise server and applicaton server?

    It is preferable to install in PS_home folder where I had installed Peopletools and application or let it install at default location?

    What I should do after it get installed so that I can run my payroll processes?

    thanks in advance

  5. From what I see on http://edelivery.oracle.com , they offer a Server Express or Net Express edition. I would just install the minimum unless you have special needs. You just need something that will compile the COBOLs.

    I installed NetExpress outside the PeopleSoft home. If you have only one instance of PeopleSoft, it really doesn’t matter. If you have multiple instances of PeopleSoft on the same box, you get have multiple installations of MicroFocus which would be unnecessary.

    After you get it installed, just run the commands in the post. Check the paths and change them to match your installation.

  6. Hi DE,

    I am trying to Install COBOL for my HCM 9.0 Installation. I have downloaded and installaed the Net Express Cobol Comipler and now I am doing the exact same steps as you have discussed above. I am getting the Object Compiling Error. Pasted below.

    ASCII Cobol Compilations Proceeding
    Creating Directory C:TEMPCOBOL-COMBILE
    Logging progress to file C:TEMPCOBOL-COMBILECBLBLD.LOG
    COBOL compiler found in “C:Program FilesMicro FocusNet Express 5.1Base”
    Target directory (C:PS_HOMECBLBINA) exists and is writable

    Copying source files …

    Building the COBOL targets …

    File(s) that failed to compile or link:
    .
    Compile error for AVPACCTL.obj
    Compile error for AVPCAE.obj
    Compile error for AVPGCLUB.obj
    Compile error for CCPMNTPD.obj
    Compile error for EGPCSRVC.obj
    Compile error for EGPUDTGN.obj
    Compile error for FAP00SLD.obj
    Compile error for FAPAUTHP.obj
    Compile error for FAPBUDMV.obj
    Compile error for FAPCLICR.obj
    Compile error for FAPCLIOR.obj
    Compile error for FAPCLOCX.obj
    Compile error for FAPCLOOR.obj
    Compile error for FAPCMPR1.obj
    Compile error for FAPCNAS9.obj
    Compile error for FAPCOR00.obj
    Compile error for FAPDISBP.obj
    Compile error for FAPDLINB.obj
    Compile error for FAPDLOCH.obj
    Compile error for FAPDLODB.obj
    Compile error for FAPDLOOR.obj
    Compile error for FAPEQPAR.obj
    Compile error for FAPEQRUN.obj
    Compile error for FAPINAS5.obj
    Compile error for FAPINAS6.obj
    Compile error for FAPINAS7.obj
    Compile error for FAPINSS2.obj
    Compile error for FAPLBOG1.obj
    Compile error for FAPLCAD1.obj
    Compile error for FAPLCIA4.obj
    Compile error for FAPLCOA4.obj
    Compile error for FAPLCOX4.obj
    Compile error for FAPLDAD1.obj
    Compile error for FAPLDAD2.obj
    Compile error for FAPLDOA4.obj
    Compile error for FAPLDPN2.obj
    Compile error for FAPLORG0.obj
    Compile error for FAPPIDA0.obj
    Compile error for FAPPKASN.obj
    Compile error for FAPPKCTL.obj
    Compile error for FAPPKENG.obj
    Compile error for FAPPKPST.obj
    Compile error for FAPPLBL0.obj
    Compile error for FAPPLINB.obj
    Compile error for FAPPLODB.obj
    Compile error for FAPPLOOR.obj
    Compile error for FAPSAR00.obj
    Compile error for FAPTALRT.obj
    Compile error for FAPTRMU1.obj
    Compile error for FAPUPTGT.obj
    Compile error for FGPACCRL.obj
    Compile error for GPPDPDM5.obj
    Compile error for GPPSERVC.obj
    Compile error for GPPUERND.obj
    Compile error for GPPUSYPN.obj
    Compile error for GPPUTAKE.obj
    Compile error for PAPCABAL.obj
    Compile error for PAPCAERN.obj
    Compile error for PAPCOPTF.obj
    Compile error for PAPCRCTL.obj
    Compile error for PAPCRSQL.obj
    Compile error for PAPCSRVC.obj
    Compile error for PAPCSSEC.obj
    Compile error for PAPPCERN.obj
    Compile error for PAPPCHRS.obj
    Compile error for PAPPEXPT.obj
    Compile error for PAPPPYMT.obj
    Compile error for PAPPRSQL.obj
    Compile error for PAPUALTL.obj
    Compile error for PAPUDTGN.obj
    Compile error for PAPUPROJ.obj
    Compile error for PIPCMPAR.obj
    Compile error for PIPMPORT.obj
    Compile error for PIPSPRCS.obj
    Compile error for PIPUTLTY.obj
    Compile error for PSPBAELG.obj
    Compile error for PSPBAELT.obj
    Compile error for PSPBAENR.obj
    Compile error for PSPBAOPT.obj
    Compile error for PSPBASCH.obj
    Compile error for PSPBATBL.obj
    Compile error for PSPCNTAX.obj
    Compile error for PSPCOBRA.obj
    Compile error for PSPCPCAL.obj
    Compile error for PSPEARRY.obj
    Compile error for PSPECALC.obj
    Compile error for PSPENANN.obj
    Compile error for PSPENNHT.obj
    Compile error for PSPFCEXT.obj
    Compile error for PSPGCALC.obj
    Compile error for PSPGPROR.obj
    Compile error for PSPLDTL2.obj
    Compile error for PSPMFLSA.obj
    Compile error for PSPPARRY.obj
    Compile error for PSPPFDED.obj
    Compile error for PSPPFDST.obj
    Compile error for PSPPFUND.obj
    Compile error for PSPPTFND.obj
    Compile error for PSPPYNET.obj
    Compile error for PSPRPERY.obj
    Compile error for PSPTCALC.obj
    Compile error for PSPUSTAX.obj
    Compile error for PTPSQLGS.obj
    Compile error for SFP1098P.obj
    Compile error for SFPAPLPY.obj
    Compile error for SFPAPPFE.obj
    Compile error for SFPAYROG.obj
    Compile error for SFPBICOR.obj
    Compile error for SFPBILGE.obj
    Compile error for SFPCHECS.obj
    Compile error for SFPCLCAN.obj
    Compile error for SFPCRHST.obj
    Compile error for SFPFEADJ.obj
    Compile error for SFPFECAL.obj
    Compile error for SFPGLINT.obj
    Compile error for SFPLATFE.obj
    Compile error for SFPLNADJ.obj
    Compile error for SFPORGPY.obj
    Compile error for SFPORGSH.obj
    Compile error for SFPQKORG.obj
    Compile error for SFPQKPST.obj
    Compile error for SFPQPOST.obj
    Compile error for SFPREFND.obj
    Compile error for SFPSTDNT.obj
    Compile error for SFPTPRCL.obj
    Compile error for SRPCAGRP.obj
    Compile error for SRPCAPRG.obj
    Compile error for SRPCARPE.obj
    Compile error for SRPCARQ1.obj
    Compile error for SRPCARQL.obj
    Compile error for SRPCARQM.obj
    Compile error for SRPCAXR2.obj
    Compile error for SRPCBART.obj
    Compile error for SRPCCARS.obj
    Compile error for SRPCCART.obj
    Compile error for SRPCCONS.obj
    Compile error for SRPCENVB.obj
    Compile error for SRPCENVR.obj
    Compile error for SRPCEPRD.obj
    Compile error for SRPCEPST.obj
    Compile error for SRPCERPT.obj
    Compile error for SRPCTEXT.obj
    The error list is in C:TEMPCOBOL-COMBILEERROR.LIS
    .
    Aborting this process !!! EXEs/GNTs/INTs are not going to be copied/replaced…
    .
    Please fix the errors and rerun this batch file !!!!!!!
    .

    C:TempCOBOL-COMBILE>

    When I check the Error.lis file, I find the same entries there.

    Could you please inform, as to why am I getting this error?

  7. ps_rookie,

    I am not exactly sure about this one. Maybe someone else will post a better idea, but I would try to take out the dash (-) in your path. Instead of C:TEMPCOBOL-COMBILE try c:tempcobol_compile or cobolCompile or something like that.

    So, change
    cblbld c: TEMPCOBOL-COMBILE
    to
    cblbld c: TEMPCOBOL_COMPILE

    Hope that helps. Please let me know.

  8. Thanks DE,
    I shall wait for some one else to reply, in the mean time I will try out what you have suggested.
    One more question, which would be the latest and best COBOL compiler for HCM 9.0 Installation on Windows-32?

  9. Last I checked on Meta-Link, the latest compiler was version 5.1.

    Please let me know how things turn out.

  10. Just an update – The trick of remoing the dash ‘-‘ didn’t work. I renamed the COBOL-COMPILE to CCOMPILE but it still gave me the errors. Am still researching.

    1. Hey ps_rookie,

      Check for the files named C:TEMPCOBOL-COMBILESRPCTEXT.*
      I am assuming the error is being faced in compiling the file SRPCTEXT.CBL
      If I remember vaguely, the name of the error file should be SRPCTEXT.LIS, but just check all like named files. Pardon my memory, I suffer from occasional amnesia.
      Let me know if it was of any help!

      Cheers!
      Sam

  11. Thanks Sam,

    I tried your solution too. But even this didnt work. So I am still stuck at the same problem….

    But I have a hunch at the solution…. I am guessing most of the above .obj files cant compile because of the source file 2200 lines of code restriction….

    i was under the impression that net Express 5.1 and 5.0 (University edition) are free of cost. But I wasn’t sure of the 2200 code line limit…

    Is there any way to get over this problem?

    Thanks

Leave a Reply to digitaleagle Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.