Re: copy PS into PDS with RPF?
Rick Fochtman <[email protected]> Sat, 07 Aug 2010 10:27:55 -0500
| Newsgroups | gmane.comp.emulators.turnkey-mvs |
|---|---|
| Message-ID | <[email protected]> |
-----------------------------<snip>--------------------------
>
>
> Is there an RPF / TSO command to copy a PS into a PDS?
>
> I've looked through the RPF menus, tried to use it's copy command, but
> it said the source was not a PDS.
>
> I started up the PDS command from TSO, but dont' see anything.
>
> So do I need to do the (dreaded) JCL / + some utility ? ;)
>
----------------------------<unsnip>---------------------------
From TSO READY prompt you can do this:
ALLOC FI(SYSUT1) DA('input-ps-dataset') SHR
ALLOC FI(SYSUT2) DA('output-pds(membername')) SHR
ALLOC FI(SYSIN) DUMMY
ALLOC FI(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
or you can do this from batch:
// job statement
// EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=input-ps-dataset
//SYSUT2 DD DISP=SHR,DSN=output-pds(membername)
There's no reason to "dread" the utilities; they're your "friends in
need" and can save a LOT of headaches. :-)
JCL gets much easier with practice; just learn to treat it as a new
language and you'll pick it up much faster.
Where most "newbies" get tangled up is in over-specifiying JCL parameters.
I haven't checked lately but if you can find the site
<www.mvs-training.com>, they publish a book titled "OS.390 MVS JCL Quick
Reference Guide", by Olivia R. Carmandi (ISBN 1-892559-06-4) that's a
good learning aid for JCL. If you can't find that link, try going
through <www.diversifiedsoftware.com> You might also be able to find it
on AMAZON; it's not expensive but for a newcomer to the world of MVS JCL
it can be a real lifesaver. Just beware: there are features of OS/390
and z/OS JCL that aren't available in MVS 3.8. Like everything else in
the world of mainframe computing, evolution adds new features and
changes old ones.
Rick