views:

128

answers:

1

Hello,

How can i use the IEBGENER utilty to copy a member from one pds to another.

something similar to this: //myjob job1 // exec pg=eibgener ??

don't know the the rest.

A: 

Assuming the output PDS has already been created and contains sufficient space, you could try something like:

//jobname  your-jobcard-info                               
//stepname EXEC PGM=IEBGENER                    
//SYSUT1   DD DSN=input-pds(member),DISP=OLD 
//SYSUT2   DD DSN=output-pds(member),DISP=OLD
//SYSPRINT DD SYSOUT=*                          
//SYSIN    DD DUMMY                               
//*                                              

I think IDCAMS REPRO is more commonly used for this sort of thing these days.

NealB