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
 

 

COPY records starts from position 10 to 20 only

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Sun Mar 18, 2007 4:10 pm    Post subject: COPY records starts from position 10 to 20 only
Reply with quote

Hi,

I have some doubts. If 100 bytes length of record is there. I want to get record starts from position 10 to 20 only. How to get it? Will SORT utility be used or something?

Second one is One VSAM file Which has 10000 records are there I want to copy from 5000 record to 7000 records only. How to do? Please explain it with suitable examples.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Mar 18, 2007 6:05 pm    Post subject: Re: How to COPY selected portion?
Reply with quote

suresh_gop1 wrote:
I have some doubts. If 100 bytes length of record is there. I want to get record starts from position 10 to 20 only. How to get it? Will SORT utility be used or something?
Sort's inrec or outrec can do this.
suresh_gop1 wrote:
Second one is One VSAM file Which has 10000 records are there I want to copy from 5000 record to 7000 records only. How to do? Please explain it with suitable examples.
Idcam's repro and sort are among the utilities that can do this.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 9:59 am    Post subject:
Reply with quote

Hi There,

Following are the sort card for this

1)
Code:
//SYSIN DD *
   OPTION COPY
   OUTREC FIELDS=(1:10,20)
/*


2)
Code:
//SYSIN DD *
   OPTION COPY         
   OUTFIL FILES=1,STARTREC=5000,ENDREC=7000
/*
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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