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
 

 

how to migrate data from one layout to another layout

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Thu Mar 02, 2006 11:44 am    Post subject: how to migrate data from one layout to another layout
Reply with quote

Hi all,


I am having a GDG A with 110 versions with below Layout as given below in OLD-VSAMNTB and I want to copy the GDG to a new GDG B with below layout as mentioned in NEWNTB

Now I want to migrate the data in existing GDG A generation to the new GDG B of same generation number

How can I do it..

Note : The fields in red are newly added and offsets are changed?


old vsamntb

01 a.
05 B PIC X(40)
05 C OCCURS 10 TIMES
10 D PIC X(20)
05 E PIC X(40)
05 FILLER X(60)
newntb

05 B PIC X(40)
05 C OCCURS 10 TIMES
10 D PIC X(20)
10 FILLER PIC X(60)
05 E PIC X(40)
05 FILLER X(60)
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Mar 02, 2006 4:12 pm    Post subject: Re: how to migrate data from one layout to another layout
Reply with quote

Hi,

I believe you need to a short COBOL program to reformat it from Old to New.

Hope it helps

Regards
Rupesh
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Mar 02, 2006 6:55 pm    Post subject: Re: how to migrate data from one layout to another layout
Reply with quote

I think this is the proper SORT job:
Code:

//STEP0001 EXEC PGM=SORT                           
//SORTIN   DD   DISP=SHR,DSN=vsamntb
//SORTOUT  DD   DSN=newntb,
//         DISP=(,CATLG,DELETE),UNIT=SYSDA,       
//         SPACE=(CYL,(1,1),RLSE)                 
//SYSOUT   DD   SYSOUT=*                           
//SYSIN    DD   *                                 
  OPTION COPY                                     
  OUTREC FIELDS=(1:1,40,41:41,20,121:61,20,       
    201:81,20,281:101,20,361:121,20,               
    441:141,20,521:161,20,601:181,20,             
    681:201,20,761:221,20,841:241,40,             
    881:281,60)                                   
/*                                                 
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm


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