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: 4649
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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