Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Compare yesterday's date to the one o... migusd SYNCSORT 7 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us