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
 

 

Copying member of one PDS to another file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Copying member of one PDS to another file
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

Site Director


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

PostPosted: Fri Sep 28, 2007 7:19 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10255
Location: italy

PostPosted: Fri Sep 28, 2007 8:02 pm    Post subject: Reply to: Copying member of one PDS to another file
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

Site Director


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

PostPosted: Fri Sep 28, 2007 8:13 pm    Post subject:
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    Post subject: Copying member of one PDS to another PDS
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10255
Location: italy

PostPosted: Fri Sep 28, 2007 9:06 pm    Post subject:
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

Site Director


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

PostPosted: Fri Sep 28, 2007 9:15 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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