View previous topic :: View next topic |
Author |
Message |
pzmohanty Beginner
Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
|
Posted: Tue Jul 06, 2004 11:26 am Post subject: use of the CONCATENATED dataset in COBOL for I-O or Output |
|
|
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 |
|
|
pzmohanty Beginner
Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
|
Posted: Tue Jul 06, 2004 11:29 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Jul 06, 2004 11:47 am Post subject: |
|
|
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 |
|
|
|
|