>From the DFSMSdfp Utilities manual.  

In this example, a partitioned data set (consisting of three members) is 
created from sequential input.


       //TAPEDISK JOB  ...
       //STEP1    EXEC PGM=IEBGENER
       //SYSPRINT DD  SYSOUT=A
       //SYSUT1   DD  DSNAME=INSET,UNIT=tape,LABEL=(,SL),
       //             DISP=(OLD,KEEP),VOLUME=SER=001234
       //SYSUT2   DD  DSNAME=NEWSET,UNIT=disk,DISP=(,KEEP),
       //             VOLUME=SER=111112,SPACE=(TRK,(10,5,5)),
       //             DCB=(RECFM=FB,LRECL=80,BLKSIZE=2000)
       //SYSIN    DD  *
            GENERATE  MAXNAME=3,MAXGPS=2
              MEMBER  NAME=MEMBER1
       GROUP1 RECORD  IDENT=(8,'FIRSTMEM',1)
              MEMBER  NAME=MEMBER2
       GROUP2 RECORD  IDENT=(8,'SECNDMEM',1)
              MEMBER  NAME=MEMBER3
       /*


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Wednesday, March 19, 2014 9:55 AM
To: [email protected]
Subject: Re: Help with IEBCOPY?

On Wed, 19 Mar 2014 09:45:26 -0700, Gerhard Adam wrote:

>You're  using the wrong utility.  You want IEBGENER.
> 
Maybe.

>-----Original Message-----
>Behalf Of Hansen, Dave L - Eagan, MN
>Sent: Wednesday, March 19, 2014 9:41 AM
>
>
>   I tried "C I=INDD1,O=OUTDD1" and "S M=(DRSSKEY,KEYLRS)".  I would like
>the flat file to be copied into two PDS members in the same dataset.  If I
>can get one member created that would be nice.
> 
What's the format of your flat file?  How are the two members
delimited.

>   The first message FCO710A  says there is more information in FCO700A.
>
>   The second message FCO701A says it's trying to read from the "unloaded"
>dataset.
> 
Anything that's not a PDS is presumed to have been unloaded by IEBCOPY.

>   Q).  Can I use IEBCOPY to copy a flat file to a PDS?
> 
Only if it has been unloaded by IEBCOPY.

>   Q).  I am running a REXX exec using IEBCOPY.  Would you recommend a
>different approach for my REXX exec?
> 
IEBGENER?  I don't know the full capabilities of IEBGENER.  Can it
stop some known delimiter?

At worst, read records with EXECIO and write with EXECIO.

Someone will surely suggest DFSORT or ICEUTIL.  Not in my
skill set.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to