Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in


Handling PDS in Assember

Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message

New User

Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Thu Oct 19, 2006 10:58 am    Post subject: Handling PDS in Assember
Reply with quote

Hello Buddies,

I have a new requirement on Assember by which I have to handle PDS members. For example, I want to read the PDS using Assembler program and need to copy all the members from the PDS to another PDS.

Let me know the DCB parameters for PDS and also the GET & PUT format for reading & writing PDS.

This requirement is only on assembler.

Thanks in advance.

Back to top
View user's profile Send private message


Active Member

Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Fri Oct 20, 2006 8:16 pm    Post subject:
Reply with quote

Hi !

Why using assembler-programm. Better use an utility for copying
members form one pds to an other.

If you code an open instruction there is an open of the file you specify in the dcb. The logical name of the dcb refers to the corresponding JCL DD-Statement. There you have to specify the physical name of the file.
This means the DSN of the PDS and the member you want to process.
For example: Userid.Testpds(Member).

So in the normal way, with an PDS with 20 members, you will have normaly 20 DCB's in your programm an 20 DD's in your JCL.

But if you will handel a various number of members in an PDS, you could
use the IHADCB macro for modifying DCB-Parameters thru runtime.

First you have to create a littele file with alle the membernames of that pds. Use a utility or a Rexx or something else. This is the first step in your Job. Second step is your programm. This is now reading this little file sentence for sentence. With the info of the membername and the changing
of the DCB before open instruction, the open becomes dynamic.

Exampel: modify IN-DCB with Membername-1 then, open-read-close
modify IN-DCB with Membername-2 then, open-read-close
and so on.

You will only need one DCB in programm and one DD-Statement in JCL.

Regards, UmeySan
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ON ERROR handling soundarr PL/I & Assembler 2 Wed May 11, 2016 3:37 am
No new posts Exception Handling in Native Stored P... Mariraj DB2 1 Thu Feb 25, 2016 4:08 am
No new posts Handling Rexx Abend trushant.w CLIST & REXX 3 Thu Jan 08, 2015 6:42 pm
No new posts Handling a string more than 250 chara... prasadchikane CLIST & REXX 3 Fri Nov 07, 2014 11:12 am
No new posts Handling Variable length files in SAS... mushreyas All Other Mainframe Topics 7 Fri Oct 31, 2014 11:12 am

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