Another Way to Dump an IFS File
October 25, 2002 Timothy Prickett Morgan
Hey, Ted:
When answering the question that was posed in the October 18 issue of Midrange Guru, “Hex Dump of an IFS File,” you provided a Qshell answer. If you don’t happen to have Qshell installed, you can use two CL commands instead. Here’s how:
CPY OBJ('/somedir/somefile.txt') + TOOBJ('/qsys.lib/somelib.lib/hexifs.usrspc') + TOCODEPAGE(*CALC) DTAFMT(*TEXT) DMPOBJ DMPOBJ OBJ(somelib/hexifs) + OBJTYPE(*USRSPC)
|
Experiment with the codepage and data format parameters of the Copy (CPY) command to give needed conversions.
There are a couple of other details of which you should be aware:
- CPY fails if the user space already exists.
- Using CPY to copy from a streamfile to a user space requires *AUDIT special authority.
— Tom Liotta
The Powertech Group Inc.
www.powertech.com
Sponsored By ADVANCED SYSTEMS CONCEPTS |
Business Analytics SEQUEL FYI
User Quote: SEQUEL FYI offers outstanding OLAP business intelligence functionality for a fraction of the cost of comparable solutions. |