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.