1. Gene Kanten
  2. PowerBuilder
  3. Friday, 4 December 2020 15:51 PM UTC

When performing a compile using the autocompiler for PB 2019 R2, it seems to generate a log file but the filename seems to change depending on when and where I do the compile.

Here is an example of my compile using pbc190.exe:

C:\temp_git\Powerbuilder>pbc190 /d cs_start.pbt  
C:\temp_git\Powerbuilder\cs_start.pbt
Mapped the source files in ws_objects to the workspace path successfully.
c:\temp_git\powerbuilder\cs_start.pbl
SCC operation failed.  See SMS log.
        Creating compilation list...
        Creating c:\temp_git\powerbuilder\cs_start.pbl(cs_start.sra)...
        Creating c:\temp_git\powerbuilder\cs_start.pbl(f_replace.srf)...
        Stage1 for c:\temp_git\powerbuilder\cs_start.pbl(cs_start.sra)...
        Stage1 for c:\temp_git\powerbuilder\cs_start.pbl(f_replace.srf)...
        Stage2 for c:\temp_git\powerbuilder\cs_start.pbl(cs_start.sra)...
        Stage2 for c:\temp_git\powerbuilder\cs_start.pbl(f_replace.srf)...
        Creating compilation list...
        Stage2 for c:\temp_git\powerbuilder\cs_start.pbl(cs_start.sra)...
        Stage2 for c:\temp_git\powerbuilder\cs_start.pbl(f_replace.srf)...
        Regenerating c:\temp_git\powerbuilder\cs_start.pbl(cs_start.sra)...
        Regenerating c:\temp_git\powerbuilder\cs_start.pbl(f_replace.srf)...
        Rebuild complete.
 Library: c:\temp_git\powerbuilder\cs_start.pbl     Object: f_replace         Function Source             (0003): Error       C0015: Undefined variable: len_look_for             (0006): Error       C0015: Undefined variable: start_pos             (0010): Error       C0015: Undefined variable: start_pos'Application' failed to compile
Removed the mapped source files successfully.

When there are compile errors it states: SCC operation failed.  See SMS log.

But what is the file name of the SMS log?

When I look in the folder there is a file named "N=8e0a". It contains this:

12/04/2020   07:38 Source Management Initialization...
    Local Project Path: c:\temp_git\powerbuilder
    Scc Connect Offline Successful.
PBORCA_SccSetTarget: c:\temp_git\powerbuilder\cs_start.pbt
Target settings: REFRESH ALL   |  IMPORT ONLY
    App Name: cs_start    App Lib: c:\temp_git\powerbuilder\cs_start.pbl
    Library List:
    c:\temp_git\powerbuilder\cs_start.pbl
PBORCA_SccRefreshTarget. Migrate and Full Rebuild
Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
 Library: c:\temp_git\powerbuilder\cs_start.pbl
     Object: f_replace
         Function Source
             (0003): Error       C0015: Undefined variable: len_look_for
             (0006): Error       C0015: Undefined variable: start_pos
             (0010): Error       C0015: Undefined variable: start_pos
Errors encountered during import/compile.  Check SMS log.
PBORCA_SccClose

Is this the SMS log?

Is there a way to specify the name of the SMS log file?
Because the file name seems to change depending on when and where I run the compile from.

Yesterday when I ran it, the file was named a

I need to be able to specify the filename so I can automate checking for errors.

I don't see any command line parameter for pbc190.exe to handle this.

I guess I could redirect the console output to a file and then parse that file because the errors exist there as well, although they seem to all be included on the same line.

 

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 18 December 2020 19:15 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Gene;

  The PBC does not support an argument to control logging. It does call some ORCA functionality on the compilation's behalf though - hence the possibility of an SMS.Log message. However at this time, you do not have control over this aspect. This would require a PBC enhancement. You can request by please emailing Product@Appeon.com.

Regards ... Chris

Comment
  1. Gene Kanten
  2. Friday, 18 December 2020 20:29 PM UTC
Thanks Chris. I will submit a request.
  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 18 December 2020 18:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi Gene,

 

Perhaps this is what you are looking for: scc set connect property logfile logFileName 

 

You may find more info about it here: https://docs.appeon.com/pb2017r3/pbug/apbs02.html

 

Regards,

Comment
  1. Gene Kanten
  2. Friday, 18 December 2020 20:19 PM UTC
Hi Govinda,



I'm not running an ORCA script, I'm running the PowerBuilder compiler, pbc190.exe.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.