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
 
Need to copy data from particular column in flat file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vidya Kajale

New User


Joined: 01 Jun 2010
Posts: 43
Location: India

PostPosted: Thu Apr 18, 2013 3:15 pm    Post subject: Need to copy data from particular column in flat file
Reply with quote

Hi,

I need to copy data from some colums say col 3 to 15 and then col 20-35 then col 50-60 from a flat file to another flat file. I also have a copy book for the file.
And i have around 3000 of total records.
Can some please tell me how will proceed for these.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Apr 18, 2013 3:22 pm    Post subject: Reply to: Need to copy data from particular column in flat f
Reply with quote

the issue has been debated and solution provided gazillions times
what happened when You searched the forum
buzzwords for the search reformat build
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 18, 2013 3:22 pm    Post subject:
Reply with quote

What does having a copy book matter? If you are not writing a program to do this, the copy book won't be needed and if you are writing a program to do this then why are you posting on this forum?

Are you wanting to preserve the spacing or can columns 3 to 15 from the input file become columns 1 to 13 of the output file?

If you want to preserve spacing, what do you want in the columns not being copied -- spaces? zeroes? some specific hexadecimal value?

What have you tried already? This can be done using SORT or IEBGENER; have you read the manual about them?
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 Getting ASP3 abend while retrieving d... Vedant CICS 0 Fri Oct 20, 2017 1:28 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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