SLIC Distributor format is a text based self-extracting program. It is primarily distributed in EBCDIC form as this minimizes the risk of code page confusion.
Assuming you have the following:
A distribution file called myfile.mbr
A library on your system called mylib
In summary, to install the software, do the following
- Change your job to CCSID(285)
- Create a source file on your system with a length of 112 bytes and in code page 285
- Copy the source to the source file member
- Change the uploaded source member to type CLP
- Compile the source member
- Call the compiled program with a parameter of the target library name
- Hey presto - it's all there in your target library (so long as no errors have occured!)
Ok, a little more detail.
1. Change your job to CCSID 285
CHGJOB CCSID(285)
1. 2. Create a source file on your system with a length of 112 bytes and in code page 285
CRTSRCPF mylib/QCLSRC112 RCDLEN(112) CCSID(285)
2. 3. Copy the source to the source file member.
This is the trickiest part of the operation. There are at least two methods that can be used.
Method 1 – use the dos copy command
a. Map a drive to the root directory on your i5, iSeries or AS/400 and call it Z
b. Copy /b myfile.mbr Z:\qsys.lib\mylib.lib\qclsrc112.file\myfile.mbr
Method 2 – use the IFS.
a. Copy the file myfile.mbr to a directory on the IFS
b. On the i5 command line, enter the command
CPYFRMSTMF FROMSTMF('/mydirectory/myfile.mbr') TOMBR('/qsys.lib/mylib.lib/qclsrc112.file/myfile.mbr') MBROPT(*REPLACE) CVTDTA(*NONE) ENDLINFMT(*FIXED) TABEXPN(*NO)
3. 4. Change the uploaded source member to type CLP
Use option 13 on PDM to do this!
4. 5. Compile the source member
CRTCLPGM .....nothing special here
5. 6. Call the compiled program (Create the objects)
Decide upon which library you want to install into, I would suggest you start with a clean slate here as it’s easier if thing go wrong.
a. ADDLIBLE MYLIB
b. CALL MYFILE targetLib
6. 7. Have a coffee and relax, job done.
SLIC Distributor format is a text based self-extracting program. It is primarily distributed in EBCDIC form as this minimizes the risk of code page confusion.
Assuming you have the following:
A distribution file called myfile.mbr
A library on your system called mylib
In summary, to install the software, do the following
- Create a source file on your system with a length of 112 bytes and in code page 285
- Copy the source to the source file member
- Change the uploaded source member to type CLP
- Compile the source member
- Call the compiled program with a parameter of the target library name
- Hey presto - it's all there in your target library (so long as no errors have occured!)
Ok, a little more detail.
1. Create a source file on your system with a length of 112 bytes and in code page 285
CRTSRCPF mylib/QCLSRC112 RCDLEN(112) CCSID(285)
2. Copy the source to the source file member.
This is the trickiest part of the operation. There are at least two methods that can be used.
Method 1 – use the dos copy command
a. Map a drive to the root directory on your i5, iSeries or AS/400 and call it Z
b. Copy /b myfile.mbr Z:\qsys.lib\mylib.lib\qclsrc112.file\myfile.mbr
Method 2 – use the IFS.
a. Copy the file myfile.mbr to a directory on the IFS
b. On the i5 command line, enter the command
CPYFRMSTMF FROMSTMF('/mydirectory/myfile.mbr') TOMBR('/qsys.lib/mylib.lib/qclsrc112.file/myfile.mbr') MBROPT(*REPLACE) CVTDTA(*NONE) ENDLINFMT(*FIXED) TABEXPN(*NO)
3. Change the uploaded source member to type CLP
Use option 13 on PDM to do this!
4. Compile the source member
CRTCLPGM .....nothing special here
5. Call the compiled program (Create the objects)
Decide upon which library you want to install into, I would suggest you start with a clean slate here as it’s easier if thing go wrong.
a. ADDLIBLE MYLIB
b. CALL MYFILE targetLib
6. Have a coffee and relax, job done.
< Prev | Next > |
---|