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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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