SEU User Options How to copy a SRCMBR to IFS

OK so I am behind the times and do not use WSDSc but to be honest I hated the Client when I ran it a number of months back and eventually removed it from the PC! One thing I like to do is to copy the source out to a PC file so it can be read on the PC when I am away traveling. I had looked at writing my own utility which would read the source file and then create an ASCII version on the IFS but it seemed a lot of work when there should be something easier. Thats when I started to look at using the PDM User Options, I already have a number of options I created for doing things like CRTPGM and Change Ownership etc so I though I would create one which would copy the member to the IFS!

Thats where the fun started, I know IBM has abandoned the SEU in a attempt to get people to use WSDSc but the lack of information about how to use the User defined Options is beyond belief! I looked at all of the shipped samples and pressed help in the faint hope of seeing how the structure worked! No such luck, I had to experiment with the options trying to get the command to correctly populate the command strings… However after much hair loss I now have what should have been a two second job done and can now copy the source members to the IFS no problem.

To get to the options you have to press F16 from one of the work with screens under PDM. Then press F6 to add a new option. I decided to make my new option MC (member copy?) and added the following cpytostmf frommbr(‘/qsys.lib/&L.lib/&F.file/&n.mbr’) tostmf(‘/home/chris/&N’) STMFOPT(‘*REPLACE’). All I have to do now is place MC against the member I wish to copy, press enter and its automatically copied. You can change the the parameters how ever you want to allow the creation of sub directories for the file and library etc, but for me this works quite well for the moment. The command fails if the target directory structure is incomplete so make sure you create the full structure to support the command.

Chris…

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.