On Mon, 17 Dec 2007 23:43:58 -0500, John S. Giltner, Jr.
<[EMAIL PROTECTED]> wrote:

>Tsai Laurence wrote:
>> Hi listers,
>> as the subject, is it doable ? how ?
>> Thanks for your advisement .
>>
>>
>> Sincerely,Laurence
>
>
>@records = '/usr/local/bin/readmvs "//MVS.FILE.NAME"'
>foreach $line (@records) {
>}
>
>
>The above will read the MVS file name "MVS.FILE.NAME" and place each
>record in array @records, then for each line on @record do whatever is
>inbetween the brackets.
>
>There is a writemvs command also, but I have never used it.
>

readmvs and writemvs are not part of the IBM Ported Tools for z/OS
(Perl for z/OS).   They _are_ free tools available on the z/OS UNIX Tools 
and Toys download page / web site. 

http://www-03.ibm.com/servers/eserver/zseries/zos/unix/bpxa1ty2.html

"readmvs is a utility that copies one MVS file to stdout, so it can be
manipulated in shell pipelines and redirected into HFS files. writemvs is a
utility that copies stdin to an MVS file. ("MVS file" means a sequential
data set or a member of a partitioned data set.) readmvs, writemvs, and mcp
are packaged together. "

"mcp is a shell function wrapper for readmvs and writemvs (both are
described below), and all three are packaged together as "readmvs". mcp
mimics the syntax of cp for copying files from one place to another. These
files may be MVS files, indicated by a leading // on each MVS file name.
"MVS file" means a sequential data set or a member of a partitioned data set. "

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to