https://github.com/worksofliam/migrate
Tool to migrate source members to streamfiles
https://github.com/worksofliam/migrate
Last synced: 5 months ago
JSON representation
Tool to migrate source members to streamfiles
- Host: GitHub
- URL: https://github.com/worksofliam/migrate
- Owner: worksofliam
- License: mit
- Created: 2019-02-02T09:33:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-24T17:32:08.000Z (almost 3 years ago)
- Last Synced: 2025-10-11T11:04:45.786Z (9 months ago)
- Language: RPGLE
- Size: 32.2 KB
- Stars: 23
- Watchers: 5
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# migrate
Tool to migrate source members to streamfiles.
### Installation
1. `git clone` this repository
2. Run `gmake` (available from yum)
### Usage instructions
1. `ADDLIBLE MIGRATE` (or whatever library you built into)
2. `MIGSRCPF` has three parameters.
1. `LIBRARY` is the library with the source members
2. `SOURCEPF` is the source physical file with the source members
3. `OUTDIR` is the directory files will be created in. Parameter must not end with a `/` (forward slash). For example, **`/mydir` is valid** but `/mydir/` is not.
A new directory will be created in your specified output directory with the name of the source physical file, which will then contain the copied source members.
### Examples
```
MIGSRCPF LIBRARY(TESTPROJ) SOURCEPF(QRPGLESRC) OUTDIR('/mydir')
MIGSRCPF LIBRARY(DEVLIB) SOURCEPF(QRPGLESRC) OUTDIR('/myrepo')
MIGSRCPF LIBRARY(TESTPROJ) SOURCEPF(QRPGLESRC) OUTDIR('/myrepo')
```