IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COPY records starts from position 10 to 20 only


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Sun Mar 18, 2007 6:05 pm
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: 1208
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 9:59 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top