SCM Downloader CLI (SCMDownloaderCLI.bat)

The SCM Downloader CLI downloads source code from Code Pipeline, PDS or Endevor.

ParameterDescription
-ext <arg>The file extension for the downloaded source files
-filter <arg>The filter patterns for the source location on the host
-ispwComponentType <arg>

The Code Pipeline component type

-ispwContainerName <arg>

The Code Pipeline container name

-ispwContainerType <arg>

The Code Pipeline container type (0 - assignment, 1 - release, 2 - set)

-ispwDownloadAll <arg>Whether to keep the workspace in sync
-ispwFilterFiles <arg>

The Code Pipeline filter files checkbox

-ispwFilterFolders <arg>

The Code Pipeline filter folders checkbox

-ispwFolderName <arg>

The Code Pipeline folder name

-ispwLevelOption <arg>

The Code Pipeline level option (0 - selected level only, 1 - level and above)

-ispwServerApp <arg>

The Code Pipeline server application

-ispwServerConfig <arg>

The Code Pipeline server config

-ispwServerLevel <arg>

The Code Pipeline server level

-ispwServerStream <arg>

The Code Pipeline server stream

-scm <arg>The source code management type (ispw - repository downloader, ispwc - container downloader, endevor - Endevor downloader)
-targetFolder <arg>The target folder where the source will be downloaded

Example using the Code Pipeline container downloader

The following example will download all COBOL components and copybooks from Code Pipeline assignment (-ispwContainerType "0") RXN3000007, using the container downloader (-scm "ispwc"). Sources will be downloaded, regardless whether they have been changed or not (ispwDownloadAll "true"). The resources reside on host my.mainframe.host, communicating on port 16196. The downloaded sources will end up in the sub-folder <application>/MF_Source (in the example RXN3\MF_Source) of the specified target folder name.

@echo off

REM
REM Script to download sources from ISPW using the Topaz CLI
REM 
REM **********************************************************
REM Configuration Variables for the Script
REM
REM Change according to your environment
REM 
REM **********************************************************
REM
REM CLIPath  Installation Path of your Topaz CLI 
REM
REM JAVA_HOME Installation Path of Java

SET "CLIPath=C:\Program Files\Compuware\Topaz Workbench CLI 1921\"
SET "workspace=C:\Users\cwde-rnuesse\Compuware\Topaz\TopazCLIWorkspace"
SET "host=my.mainframe.host"
SET "port=16196"
SET "codepage=1047"
SET "user=++++++++"
SET "pw=********"

SET "scm=ispwc"
SET "container=RXN3000007"
SET "contType=0"
SET "downloadAll=true"

SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101"

"%CLIPath%"SCMDownloaderCLI.bat -host %host% -port %port% -id %user% -pass %pw% -code %codepage% -timeout "0" -targetFolder %workspace% -data %workspace% -scm %scm% -ispwContainerName %container% -ispwContainerType %contType% -ispwDownloadAll %downloadAll%

Example using the Code Pipeline repository downloader

The following example will download all COBOL components and copybooks from Code Pipeline stream FTSDEMO, application RXN3, from level DEV1 only (-ispwLevelOption "0"), using the repository downloader (-scm "ispw"). Sources will be downloaded, regardless whether they have been changed or not (ispwDownloadAll "true") The resources reside on host my.mainframe.host, communicating on port 16196. The downloaded sources will end up in the sub-folder <application>/MF_Source (in the example RXN3\MF_Source) of the specified target folder name.

@echo off

REM
REM Script to download sources from ISPW using the Topaz CLI
REM 
REM **********************************************************
REM Configuration Variables for the Script
REM
REM Change according to your environment
REM 
REM **********************************************************
REM
REM CLIPath  Installation Path of your Topaz CLI 
REM
REM JAVA_HOME Installation Path of Java
 
SET "CLIPath=C:\Program Files\Compuware\Topaz Workbench CLI 1921\"
SET "workspace=C:\Users\cwde-rnuesse\Compuware\Topaz\TopazCLIWorkspace"
SET "targetFolder=C:\Users\cwde-rnuesse\Compuware\Topaz\TopazCLIWorkspace"
SET "host=my.mainframe.host"
SET "port=16196"
SET "codepage=1047"
SET "user=++++++++"
SET "pw=********"

SET "scm=ispw"
SET "stream=FTSDEMO"
SET "application=RXN3"
SET "level=DEV1"
SET "levelOption=0"
SET "filterFiles=true"
SET "filterFolders=false"
SET compType="COB,COPY"
SET "downloadAll=true"

SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101"

"%CLIPath%"SCMDownloaderCLI.bat -host %host% -port %port% -id %user% -pass %pw% -code %codepage% -timeout "0" -targetFolder %targetFolder% -data %workspace% -scm %scm% -ispwServerStream %stream% -ispwServerApp %application% -ispwServerLevel %level% -ispwLevelOption %levelOption% -ispwFilterFiles %filterFiles% -ispwFilterFolders %filterFolders% -ispwComponentType %compType% -ispwDownloadAll %downloadAll%

Example using the PDS downloader

The following example will download all members from PDS 'SALESSUP.RXN3.DEV1.COB', using the PDS downloader (-scm "ispw"). Sources will be downloaded, regardless whether they have been changed or not (ispwDownloadAll "true") The resources reside on host my.mainframe.host, communicating on port 16196. The results will be downloaded to the workspace. The downloaded sources will end up in specified target folder in one sub-folder per PDS in the list that contained members.

Example
<workspace-root>
+- RXN3
    +- MF_Source_PDS
        +- SALESSUP.RXN3.DEV1.COB
        +- SALESSUP.RXN3.PRD.COB

If there are no members in the QA1 or STG PDS.

@echo off

REM
REM Script to download sources from PDS using the Topaz CLI
REM 
REM **********************************************************
REM Configuration Variables for the Script
REM
REM Change according to your environment
REM 
REM **********************************************************
REM
REM CLIPath  Installation Path of your Topaz CLI 
REM
REM JAVA_HOME Installation Path of Java
 
SET "CLIPath=C:\Program Files\Compuware\Topaz Workbench CLI 1921\"
SET "workspace=C:\Users\cwde-rnuesse\Compuware\Topaz\TopazCLIWorkspace"
SET "targetFolder=C:\Users\cwde-rnuesse\Compuware\Topaz\TopazCLIWorkspace\RXN3\MF_Source_PDS"
SET "host=my.mainframe.host"
SET "port=16196"
SET "codepage=1047"
SET "user=++++++++"
SET "pw=********"

SET "scm=pds"
SET filter="SALESSUP.RXN3.DEV1.COB,SALESSUP.RXN3.QA1.COB,SALESSUP.RXN3.STG.COB,SALESSUP.RXN3.PRD.COB"
SET extension=cbl

SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101"

"%CLIPath%"SCMDownloaderCLI.bat -host %host% -port %port% -id %user% -pass %pw% -code %codepage% -timeout "0" -targetFolder %targetFolder% -data %workspace% -scm %scm% -filter %filter% -ext %extension%

Example of CLI using certificate authentication

The following is an example of SCMDownloaderCLI.bat using certificate authentication.

SCMDownloaderCLI.bat -host "your-hci-host" -port "your-hci-port" -code "your-codepage" -timeout "90" -certificate "your-base64-certificate-string" -targetFolder "your-target-folder" -data "your-data-folder" -ispwServerConfig "your-server-config" -scm ispw -ispwServerStream "your-stream" -ispwServerApp "your-app" -ispwServerSubAppl "your-subapp" -ispwServerLevel "your-level" -ispwLevelOption "0" -ispwFilterFiles "false" -ispwFilterFolders "false" -ispwDownloadAll "true"


Note

The example uses Base-64 certificate to authenticate HCI.


Was this page helpful? Yes No Submitting... Thank you

Comments