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
 

 

Can a COBOL program read a Particioned Data Set (PO FILE)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rildo Ferreira

New User


Joined: 12 Jul 2008
Posts: 1
Location: São Paulo - Brazil

PostPosted: Wed Jul 30, 2008 8:29 am    Post subject: Can a COBOL program read a Particioned Data Set (PO FILE)
Reply with quote

I need to write a cobol program to read and treat all JCL that are in a PO file. I wrote the program to do it, but it is abending with I/O error.
Can same one help me how to specify the SELECT clause for this kind of file?
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: Wed Jul 30, 2008 8:47 am    Post subject:
Reply with quote

Hello Rildo and welcome to the forums,

If you post 2 or 3 sample members that will be "input" to your program and the output you want when those members are processed someone may have a suggestion.

If will also help if you post your jcl and the error message you are currently dealing with.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 30, 2008 11:25 am    Post subject: Re: Can a COBOL program read a Particioned Data Set (PO FILE
Reply with quote

Rildo Ferreira wrote:
I need to write a cobol program to read and treat all JCL that are in a PO file. I wrote the program to do it, but it is abending with I/O error.
Can same one help me how to specify the SELECT clause for this kind of file?

Dare I ask what the treatment is that could not ordinarily be dealt with by existing functionality such as an ISPF edit macro ?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jul 31, 2008 12:24 am    Post subject:
Reply with quote

Would you by any chance be trying to read and rewrite the same member? What error are you getting?
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 Jul 31, 2008 12:26 am    Post subject: Reply to: Can a COBOL program read a Particioned Data Set (P
Reply with quote

As another thought, I would think that for working with PDS's, the use of ISPF Library Management (LM) services might be beneficial.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jul 31, 2008 4:11 am    Post subject:
Reply with quote

Hi,

I'm no COBOL programmer but I'm not sure you can specify organisation of PO in your SELECT statement, so I believe you need to specify each member on a separate DD statement in your JCL.


Gerry
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 1 Mon May 29, 2017 8:10 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm


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