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

Handling PDS in Assember


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Thu Oct 19, 2006 10:58 am
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.

Regards,
Gokul
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Oct 20, 2006 8:16 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts File Handling COBOL Programming 9
No new posts Handling the numeric data in unstring... COBOL Programming 18
No new posts SORT for dynamic trailer record + CSV... DFSORT/ICETOOL 14
This topic is locked: you cannot edit posts or make replies. regarding COBOL WRITE verb (VB File H... COBOL Programming 9
No new posts Handling abend to prevent termination CICS 0
Search our Forums:

Back to Top