Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Write a jcl to copy one vsam file into another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Fri Jan 05, 2007 10:13 pm    Post subject: Write a jcl to copy one vsam file into another
Reply with quote

1.
File1:
abcdefgh
1234567
987654321

Write a JCL to create File2 as mirror image of File1

2.
File 1 :
FIRST NAME 1
FIRST NAME 2
FIRST NAME 3
FIRST NAME 4

FILE2 :
LAST NAME 1
LAST NAME 2
LAST NAME 3
LAST NAME 4

WRITE A JCL TO CREATE
FILE3 :
FIRST NAME 1 LAST NAME 1
FIRST NAME 1 LAST NAME 1
FIRST NAME 1 LAST NAME 1
FIRST NAME 1 LAST NAME 1

3. Write a jcl to copy one vsam file into another

Please let me know the answers...

Thanks.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 05, 2007 10:48 pm    Post subject:
Reply with quote

Hello,

If you move this to the dfsort forum you'll most likely get multiple answers.

If you search the dfsort forum, i believe this has already been solved there.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Jan 05, 2007 10:49 pm    Post subject: Re: Need Help to update JCL knowledge
Reply with quote

ranjitbhingare,

I take it from your post that you have limited, if any JCL experience. Is this correct?

Please let us know you JCL knowledge level, and whatever you have coded so far for these exercises.

What utilities are you allowed to use in your JCL?

We can help you walk through this?
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Fri Jan 05, 2007 11:32 pm    Post subject:
Reply with quote

Hi,

I don't want to use DFSORT. Can anyone give me the solution with normal SORTCARD and MERGE ?

Thanks...
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 06, 2007 12:15 am    Post subject:
Reply with quote

Hello,

The SORT and MERGE cards ARE part of dfsort or whatever your sort software is. Is there a reason (other than experimenting) to not use the sort?

To create a mirror of a sequential dataset you can use:
Code:

//MIRROR1  EXEC PGM=IEBGENER                                         
//SYSUT1   DD DSN=OLDSTUFF,DISP=OLD                                 
//SYSUT2   DD DSN=NEWSTUFF,DISP=(NEW,CATLG,DELETE),UNIT=WHATEVER,   
//            SPACE=(SAME AS SYSUT1 IF ON DASD)                     
//SYSIN    DD DUMMY                                                 
//SYSOUT   DD SYSOUT=*                                               
//SYSPRINT DD SYSOUT=*                                               
//                                                                   
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us