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
 

 

Conversion of PDS to Sequential files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
shob

New User


Joined: 29 Mar 2006
Posts: 3
Location: Kol

PostPosted: Thu Mar 30, 2006 10:30 am    Post subject: Conversion of PDS to Sequential files.
Reply with quote

I have to read a PDS in a cobol program and then update a particular member of that PDS.
What should be the approach.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Mar 30, 2006 11:12 am    Post subject: Re: Conversion of PDS to Sequential files.
Reply with quote

Not knowing exactly what you want to do, I would use the ISPF Library Management (LM) Services in the following order:

LMINIT to initialize the services.
LMOPEN to allocate and open the PDS.
LMMLIST to list the PDS members and allow processing by one member at a time.
LMGET to read the PDS member contents.
LMPUT to write the particular PDS member contents.
LMCLOSE to close and free the PDS.

As an alternative, you could convert the PDS into a sequential dataset using either TSO PRINTDS or the IEBPTPCH Program, read the contents until the appropriate member information is found, then build an IEBUPDTE suitable output dataset and do the update.
Back to top
View user's profile Send private message
shob

New User


Joined: 29 Mar 2006
Posts: 3
Location: Kol

PostPosted: Thu Mar 30, 2006 12:20 pm    Post subject: Re: Conversion of PDS to Sequential files.
Reply with quote

Actually What I have to do :
First I have to copy all members of PDS in to PS, so that I can read this PS in to Cobol program then in this program I have to update one or more Member of the PDS(now PS). and then again Put the updated PS in to PDS with same member list.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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