MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying first 5 records from a PS to another PS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
venu
Beginner


Joined: 11 Nov 2005
Posts: 6
Topics: 4

PostPosted: Fri Nov 11, 2005 7:29 am    Post subject: Copying first 5 records from a PS to another PS Reply with quote

I have a Problem in copying the first 5 records from a PS to another PS.

The Situation that exists here is as follows:-
a) Existing PS is a variable length dataset
b) No Access to any tools
c) Cannot write sort steps to submit a JCL because of restricted access
d) some records run a few lines and some records are a single line.so not able to identify where the records start and where it ends.
e) Since there are 92,323 records the PS is not opening in Edit mode even when i try to open it ..it is Browse substituted

i'm looking forward for a direction
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Nov 11, 2005 7:35 am    Post subject: Reply with quote

Venu,

Code:

b) No Access to any tools


Really ??? Can't you use any tool like FILE-AID / Easytrieve / IBM Utilities - IEBPTPCH ?

Code:

d) some records run a few lines and some records are a single line.so not able to identify where the records start and where it ends.


Are you talking about Variable Spanned file ??? A record in a Normal VB file does not span over a line.

Thanks,
Phantom
Back to top
View user's profile Send private message
venu
Beginner


Joined: 11 Nov 2005
Posts: 6
Topics: 4

PostPosted: Fri Nov 11, 2005 8:06 am    Post subject: Reply with quote

b) Yes I do not have access to any tools . I have only read access to the source PDS and PS and no access to any tools because the Service provider is a third party.I have to simulate those in third party MF env to my Environment

d) Yes
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Nov 11, 2005 8:14 am    Post subject: Reply with quote

Can't you even run a step using IDCAMS? if that is the case then you can try this approach.

Alllocate a dataset under your id with just 1 track as space. Now using 3.3 copy the source dataset to your t-id. it will fail as you run out of space. But it will copy some of the records to your id. I would hope it will be more than 5.

Now edit this dataset to get your desired records.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
venu
Beginner


Joined: 11 Nov 2005
Posts: 6
Topics: 4

PostPosted: Sat Nov 12, 2005 1:46 am    Post subject: Reply with quote

Yes it works .thanks a lot ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group