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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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