Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with "scc get latest version"

298 views
Skip to first unread message

"@poboxesdotcom >

unread,
Aug 11, 2004, 2:23:25 PM8/11/04
to
I can get the following script to work with the exception of the "scc
get latest version 'ahscore.pbl'" portion.

Any ideas,
Jason

Script :

start session

scc get connect properties
"C:\Develop\PowerBuilder\Develop_PB9\pb9_development.pbw"

scc connect

scc set target ".\ahs_pfc.pbt" "refresh_all exclude_checkout"

; scc refresh target "full"

; app, dw, fn, menu, query, struct, uo, win, pipe, project, or proxy.
regenerate "ahscore.pbl" "w_ahs_logon" "win"

scc get latest version "ahscore.pbl"

scc close

end session

Result :

...
c:\program files\sybase\shared\powerbuilder\pbdom90.pbd
c:\program files\sybase\shared\powerbuilder\pbejbclient90.pbd
c:\program files\sybase\shared\powerbuilder\pbsoapclient90.pbd
regenerate "ahscore.pbl" "w_ahs_logon" "win"
scc get latest version
ahscore.pbl
Orca error in 'scc get latest version '. Result Code -22.
Scc operation failed. See SMS log.
An undetermined Scc error occurred.
Last Command Failed.
scc close
endSession

Paul Horan[TeamSybase]

unread,
Aug 11, 2004, 2:47:51 PM8/11/04
to
That's not the correct syntax. There is no "SCC get latest version" command in OrcaScript.

What you're looking for is:
SCC SET TARGET ".\ahs_pfc.pbt" outofdate exclude_checkout
SCC REFRESH TARGET "full"

--
Paul Horan[TeamSybase]

"@ poboxes dot com" <""jasonvogel \"@ poboxes dot com"> wrote in message news:411a641d@forums-1-dub...

"@poboxesdotcom >

unread,
Aug 11, 2004, 5:38:32 PM8/11/04
to
Paul Horan[TeamSybase] wrote:
> That's not the correct syntax. There is no "SCC get latest version" command in OrcaScript.
>
> What you're looking for is:
> SCC SET TARGET ".\ahs_pfc.pbt" outofdate exclude_checkout
> SCC REFRESH TARGET "full"
>

Per the
http://sybooks.sybase.com/onlinebooks/group-pb/pbg0900e/pbug/@Generic__BookView?DwebQuery=orcascript&DwebSearchAll=1,

see the fourth line from the bottom.

Basically, what I'm trying to do is to regen a PBL at a time without
having to specify each object within the PBL.

Jason

OrcaScript supports the following commands:

*

start session
*

end session
*

set liblist pbl_list [pbl_list ...]
*

set application pblName applicationName
*

set name = value
*

set name += value
*

echo value [value ...]
*

file copy fromFile toFile
*

regenerate pblName entryName entryType
*

copy entry pblName entryName entryType toPblName
*

build library pblName pbrName <pbd | 32>
*

build executable exeName iconName pbrName pbdflags [machinecode]
*

build application <full | migrate | incremental >
*

build project pblName projectName [ serverName serverPort ]
*

create library pblName pblComments
*

scc get connect properties workspaceName
*

scc set connect property provider sccProvider
*

scc set connect property userid userID
*

scc set connect property logfile logFileName
*

scc set connect property project projectPath
*

scc set connect property localprojpath localProjectPath
*

scc set connect property auxproject auxProjectPath
*

scc set connect property logappend < true | false >
*

scc set connect
*

scc set target targetName [refreshType][refreshOption][refreshOption]
*

scc get latest version file_list [file_list ...]
*

scc exclude liblist pblName [ pblName ...]
*

scc refresh target targetName <full | migrate | incremental >
*

scc close

Paul Horan[TeamSybase]

unread,
Aug 11, 2004, 5:48:08 PM8/11/04
to
"@ poboxes dot com" <""jasonvogel \"@ poboxes dot com"> wrote in message news:411a91d8$1@forums-1-dub...

> Paul Horan[TeamSybase] wrote:
> > That's not the correct syntax. There is no "SCC get latest version" command in OrcaScript.
> >
> > What you're looking for is:
> > SCC SET TARGET ".\ahs_pfc.pbt" outofdate exclude_checkout
> > SCC REFRESH TARGET "full"
> >
>
> Per the
> http://sybooks.sybase.com/onlinebooks/group-pb/pbg0900e/pbug/@Generic__BookView?DwebQuery=orcascript&DwebSearchAll=1,
>
> see the fourth line from the bottom.
>
> Basically, what I'm trying to do is to regen a PBL at a time without
> having to specify each object within the PBL.
>
> Jason
>


Ah - the GET LATEST VERSION is a recent addition to the spec. I'd forgotten about it.
That's used for non-PB files, such as .bmps, .jsps, whatever. It's not used for PB objects in PBLs.

You never have to specify each object in the PBL. Use outofdate/exclude_checkout, and Refresh Target Full. It will
figure out which objects are out of sync (and not currently checked out), get them, and do a full rebuild of the target.
If you'd rather go with an incremental build, do that as well. PBL by PBL isn't an effective solution, in the long
run...

--
Paul Horan[TeamSybase]


"@poboxesdotcom >

unread,
Aug 18, 2004, 11:10:45 AM8/18/04
to
Normally, I'd agree except that we have run into several issues with PB9
(in regard to regen'ing the PBLs in the "correct" order: PFC, PFE,
AHS, then application... Refreshing the entire target has not worked
correctly.

Jason

Jason Vogel

unread,
Aug 23, 2004, 11:05:06 AM8/23/04
to

I was kind of hoping for another response to this last point. So are you then
saying that the syntax is not supported but should be? Basically, do you have
any suggestions on how I tackle this issue?

Thanks,
Jason

Paul Horan[TeamSybase]

unread,
Aug 23, 2004, 11:48:20 AM8/23/04
to
> > Ah - the GET LATEST VERSION is a recent addition to the spec. I'd forgotten about it.
> > That's used for non-PB files, such as .bmps, .jsps, whatever. It's not used for PB objects in PBLs.
> >
> > You never have to specify each object in the PBL. Use outofdate/exclude_checkout, and Refresh Target Full. It will
> > figure out which objects are out of sync (and not currently checked out), get them, and do a full rebuild of the
target.
> > If you'd rather go with an incremental build, do that as well. PBL by PBL isn't an effective solution, in the long
> > run...
> >
> Normally, I'd agree except that we have run into several issues with PB9
> (in regard to regen'ing the PBLs in the "correct" order: PFC, PFE,
> AHS, then application... Refreshing the entire target has not worked
> correctly.
>
> Jason

Sorry, I was at the Techwave conference last week, and consequently was slow in responding.

Yes - the syntax is available today, and it works fine. Define "has not worked correctly"...
I've been testing OrcaScript against the PEAT sample application (which is PFC based), and it does a great job doing a
full target refresh. And there's always Powergen (www.ecrane.com)...

--
Paul Horan[TeamSybase]


Jason Vogel

unread,
Aug 23, 2004, 5:40:02 PM8/23/04
to
So do I have the following typed correctly?

scc get latest version ".\AHS Classlibs PFC 9\ahscore.pbl"

Which I think I finally understand why it's failing. OrcaScript is not looking
inside the PBL for me and pulling each file...and the file doesn't exist in PVCS
that way...we didn't version each PBL as a directory... Any chance that this
kind of functionality could be added to OrcaScript?

Any chance you can request the following be added to OrcaScript....

regenerate ahscore.pbl

Thanks,
Jason

Paul Horan[TeamSybase]

unread,
Aug 23, 2004, 6:56:16 PM8/23/04
to
"Jason Vogel" <jasonvogel@poboxes_dot_com> wrote in message news:412a6599$1@forums-2-dub...

> So do I have the following typed correctly?
>
> scc get latest version ".\AHS Classlibs PFC 9\ahscore.pbl"
>
> Which I think I finally understand why it's failing. OrcaScript is not looking
> inside the PBL for me and pulling each file...and the file doesn't exist in PVCS
> that way...we didn't version each PBL as a directory... Any chance that this
> kind of functionality could be added to OrcaScript?
>
> Any chance you can request the following be added to OrcaScript....
>
> regenerate ahscore.pbl
>
> Thanks,
> Jason

You're missing the point... You don't register the PBLs as files within PVCS, so there's no need to do "Get Latest
Version" of a PBL. You register each object individually, and PVCS manages all those as individual archives. And you
don't regenerate a PBL, you regenerate the OBJECTS that live inside the PBL...

The command you're looking for is the one from way back in this thread:

SCC SET TARGET "ahs_pfc.pbt" outofdate exclude_checkout
SCC REFRESH TARGET "full"

The following articles have helped a lot of people understand the basics of the PB/SCC interface.

http://www.sys-con.com/pbdj/archives2/0812/horan/
http://www.sys-con.com/pbdj/archives2/0901/horan/

--
Paul Horan[TeamSybase]


0 new messages