MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

use of the CONCATENATED dataset in COBOL for I-O or Output

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Tue Jul 06, 2004 11:26 am    Post subject: use of the CONCATENATED dataset in COBOL for I-O or Output Reply with quote

hi all ,

I had following doubt,

If i had defined the DDNAME in JCL as following:--

//ddname1 dd dsn=xxxxxx,disp=shr
// dd dsn=yyyyyy,disp=shr
// dd dsn=zzzzzzz,disp=shr


& I had defined in my COBOL program following SELECT clause:--

SELECT IN-FILE ASSIGN TO DDNAME1

Now can I WRITE or REWRITE on IN-FILE.

Thanks in advance.
P.R.Mohanty
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Tue Jul 06, 2004 11:29 am    Post subject: Reply with quote

hi all,

for more clarity of question let me tell u explicitly that DDNAME1 is a concatenated dataset of 3 datasets xxxxxx,yyyyyyy & zzzzzzz.

Keeping in view that DDNAME1 is a concatenated dataset , can we WRITE or REWRITE on dataset DDNAME1 thru COBOL program.
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Jul 06, 2004 11:47 am    Post subject: Reply with quote

Pzmohanty,

You can rewrite the record in a concatenated dataset. Once you concatenate, the PGM treats it as one single dataset. Just make sure that you open the file in I-O mode.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group