Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us