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

Copying member of one PDS to another file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Fri Sep 28, 2007 7:13 pm
Reply with quote

Hi,

I want to copy a member from PDS having following allocations:
Organization . . . PO
Record format . . . :U
Record length . . . :80
Block size . . . . :8000
1st extent cylinders:24
Secondary cylinders :5
Data set name type :PDS

to another PDS having following allocations:
Organization . . . PO
Record format . . . :FB
Record length . . . :80
Block size . . . . :8000
1st extent cylinders:30
Secondary cylinders :5
Data set name type :PDS

How can this be achieved?
I have tried simple copy using ISPF option 3.3 but it is not working.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 28, 2007 7:19 pm
Reply with quote

Hello,

You need to post what "is not working". We can't see your terminal and we cannot read your mind.

Post what you keyed on which screen and what the system returned. Then maybe, we can help.
Back to top
View user's profile Send private message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Fri Sep 28, 2007 7:51 pm
Reply with quote

I tried to copy member from PDS say A.B.C to say X.Y.Z.
The allocation parameters of PDS A.B.C and X.Y.Z I have already mentioned.
While trying to copy member say PQR from A.B.C to X.Y.Z I used ISPF option 3.3 it asks whether the allocation options:
_ 1.Allocate using the attributes of A.B.C
2.Specify allocation attributes

I chose option 2 and gave the allocation parameters of X.Y.Z.
It throws the error:
"Input/output mismatch"
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 28, 2007 8:02 pm
Reply with quote

unless there a typo in Your original post

You are not allowed to copy between "U" to a "FB" record format

regards

e.s.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 28, 2007 8:13 pm
Reply with quote

Hello,

Enrico - good catch icon_smile.gif - i didn't read closely enough icon_redface.gif

Rashmi - when you get the screen asking for attributes, this is a signal that your copy is in trouble. To copy a member from one pds to another (existing) pds, they need to have similar definitions.

If your copy is to create the new pds, then you may use the existing atributes or specify new ones.
Back to top
View user's profile Send private message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Fri Sep 28, 2007 8:42 pm
Reply with quote

All the member in my pds A.B.C(which is a jcllib) have got converted to 8000-byte length records. I was trying to copy them to a PDS with length 80 so that I could submit the JCL.
Is there any other way how this can be accomplished?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 28, 2007 9:06 pm
Reply with quote

OK :-) somebody fouled up...

first take a backup copy of Your corrupted PDS

after You can run this step to fix the DCB


Code:

//IEB     EXEC PGM=IEBGENER
//SYSPRINT  DD SYSOUT=*
//SYSIN     DD DUMMY
//SYSUT1    DD *
USELESS DATA
//SYSUT2    DD DISP=SHR,DSN=your-dsname(DUMMY),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)


it should fix Your dcb and make readable the members that were there before the dcb change

regards

e.s
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 28, 2007 9:15 pm
Reply with quote

Hello,

Possibly someone compiled a program and pointed to this jcllib for the output of the link edit. . . . I'd suggest looking for the bad jcl that caused the problem.

I'll probably repeat this many, many more times. . . .

DO NOT create compile jcl for individuals! Everyone should use standard JCL because of situations just like this. It is very often that the person who causes the problem is not the one who must somehow recover from it. . . icon_evil.gif
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Sep 28, 2007 11:15 pm
Reply with quote

Sounds a lot like this threadhttp://ibmmainframes.com/viewtopic.php?t=24748.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top