Examples (REPOSITORY COPY command)
Copying from the Local File System to a IBM® SPSS® Collaboration and Deployment Services Repository
REPOSITORY COPY
FILE='/myscripts/cust_value.py'
OUTFILE='SPSSCR://scripts/cust_value.py'.
REPOSITORY ATTRIBUTES FILE='SPSSCR://scripts/cust_value.py'
KEYWORDS='customer;value'
/SECURITY ID='rprime' PERMISSION=OWNER.
- The local file /myscripts/cust_value.py is copied to the location /scripts/cust_value.py in the current IBM SPSS Collaboration and Deployment Services Repository.
- The
REPOSITORY ATTRIBUTES
command specifies keywords and security settings for this IBM SPSS Collaboration and Deployment Services Repository object.
Copying from a IBM SPSS Collaboration and Deployment Services Repository to the Local File System
REPOSITORY COPY
FILE='SPSSCR://scripts/demo.py'
OUTFILE='/myscripts/demo.py'.
- The IBM SPSS Collaboration and Deployment Services Repository object /scripts/demo.py is copied to the local file /myscripts/demo.py.
Copying from a Labelled Version in a IBM SPSS Collaboration and Deployment Services Repository to the Local File System
REPOSITORY COPY
FILE='SPSSCR://scripts/demo.py#L.production'
OUTFILE='/myscripts/demo.py'.
- The version of the IBM SPSS Collaboration and Deployment Services Repository object /scripts/demo.py with the label production is copied to the local file /myscripts/demo.py.
Using a File Handle to a IBM SPSS Collaboration and Deployment Services Repository Location
FILE HANDLE custval /NAME=’SPSSCR://CustomerValue’.
REPOSITORY COPY
FILE='custval/cust_value.py'
OUTFILE='/myscripts/cust_value.py'.
- The handle custval is associated with the IBM SPSS Collaboration and Deployment Services Repository directory /CustomerValue, and the
REPOSITORY COPY
command retrieves the latest version of the file cust_value.py from this directory in the current IBM SPSS Collaboration and Deployment Services Repository.
Setting the Working Directory to a IBM SPSS Collaboration and Deployment Services Repository Location
CD 'SPSSCR://CustomerValue'.
REPOSITORY COPY
FILE='cust_value.py'
OUTFILE='/myscripts/cust_value.py'.
- The working directory is set to the IBM SPSS Collaboration and Deployment Services Repository directory /CustomerValue, and the
REPOSITORY COPY
command retrieves the latest version of the file cust_value.py from this directory in the current IBM SPSS Collaboration and Deployment Services Repository.