MVS to zOS Unix & zOS Unix to MVS - ambitus/artifactory-vault GitHub Wiki
This guide focuses on getting datasets into a state where they can get uploaded to Artifactory, and to get downloaded artifacts into datasets. This guide illustrates how to move entities between MVS and z/OS Unix using the cp command. You may or may not need to specify any flags for your cp commands, but if you do, you can use the cp command documentation to figure out what flags you need. If you have trouble with the allocate command for allocating datasets on MVS, the allocate command documetation may be helpful.
☑️ Prerequisites:
- you know how to upload entities to, and how to download entities from Artifactory.
- Use the
cp
command to get the dataset into z/OS Unix.
$ cp -<copy mode> "//'<dataset to copy from MVS>'" \
> <path to where you want to store all of the entities copied from the dataset>
- Now that these entities are on z/OS Unix, they can be uploaded to Artifactory.
- Allocate a dataset on MVS if needed. (It is up to you to know what properties need to be specified for the allocated dataset)
$ tso "allocate dsname('<Arbitrary name for dataset>') <dataset properties>"
- Once the files are downloaded from Artifactory, run the
cp
command to copy the files to a dataset.
$ cp -<copy mode> <path to where entities are located on z/OS Unix>/* "//'<target dataset>'"