MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem using IEBCOPY

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Wed Nov 08, 2006 8:32 am    Post subject: Problem using IEBCOPY Reply with quote

hi kolusu,

Below is the JCL which l executed to do the IEBCOPY.
Problem is that the dataset is created but i am not been able to browse the dataset.It is giving invalid record format


Code:

//IEBCPY  JOB (R999999,9999) ,                 
//             MSGLEVEL=(1,1),                                   
//             MSGCLASS=A,                                   
//             CLASS=A,                                       
//STEP1   EXEC PGM=IEBCOPY                                   
//SYSPRINT DD  SYSOUT=A                                     
//SYSUT1   DD  DSN=PRACTICE.C,DISP=SHR               
//SYSUT2   DD  DSN=PRACTICE.JUNK5,                   
//             SPACE=(TRK,(1,2)),DISP=(NEW,CATLG,DELETE),   
//             UNIT=3390,                                   
//             DCB=(LRECL=80,BLKSIZE=4000,DSORG=PS,RECFM=FB),
//             VOL=SER=STGG16                               
//SYSIN    DD  *                                             
  COPY INDD=SYSUT1,OUTDD=SYSUT2                             
  SELECT MEMBER=(FH1)                                       
/*                                                           
//                       





[/code]
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Nov 08, 2006 8:42 am    Post subject: Reply with quote

You can use IEBCOPY to copy from a PDS to another PDS. You can only copy to Sequential file but the output format cannot be read. A sequential backup copy of a PDS or PDSE can be made, but you can only use that to re-create the pds back.

If you want to copy just one member to a sequential dataset then you can use IEBGENER, SORT, File-aid....

try this job
Code:

//STEP1   EXEC PGM=IEBGENER                                   
//SYSPRINT DD  SYSOUT=A                                     
//SYSUT1   DD  DSN=PRACTICE.C(FH1),DISP=SHR               
//SYSUT2   DD  DSN=PRACTICE.JUNK5,                   
//             SPACE=(TRK,(1,2)),DISP=(NEW,CATLG,DELETE),   
//             UNIT=3390,                                   
//             DCB=(LRECL=80,BLKSIZE=4000,DSORG=PS,RECFM=FB),
//             VOL=SER=STGG16                               
//SYSIN    DD  DUMMY
/*                 


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Thu Nov 09, 2006 4:42 am    Post subject: Reply with quote

Hi Kolusu,

The code you have given is working perfectly.
can you please send me a good link for Utilities we used in JCL's .

Thanks

Mrinal
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Nov 09, 2006 5:25 am    Post subject: Reply with quote

mrinalsolanki

Go to the home page http://www.mvsforums.com/ and look down for Utilities section u will find IBM UTILITIES and that should help you.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Thu Nov 09, 2006 6:00 am    Post subject: Reply with quote

Thanks shekhar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group