Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
About dataset concatenation?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
kvsumar

New User


Joined: 09 Mar 2008
Posts: 7
Location: bangalore

PostPosted: Thu Apr 17, 2008 1:25 pm    Post subject: About dataset concatenation?
Reply with quote

Hi,

If i give the stmts below in jcl what is the result?


Code:
//d1    dd dsn=one
//d2    dd dsn=two
//sysin dd dummy
//d3    dd dsn=three


which dataset will concatenate and why?

Thanks & Regards

kumar
Back to top
View user's profile Send private message
References
PostPosted: Thu Apr 17, 2008 1:25 pm    Post subject: Re: About dataset concatenation? Reply with quote

sri_mf

Active User


Joined: 31 Aug 2006
Posts: 120
Location: At my Desk

PostPosted: Thu Apr 17, 2008 1:27 pm    Post subject: Re: About dataset concatenation?
Reply with quote

kvsumar wrote:
Hi,

If i give the stmts below in jcl what is the result?


//d1 dd dsn=one
//d2 dd dsn=two
//sysin dd dummy
//d3 dd dsn=three


which dataset will concatenate and why?

Thanks & Regards

kumar


There is no concatenation there at all, is this an interview question?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 1828
Location: italy

PostPosted: Thu Apr 17, 2008 1:27 pm    Post subject: Reply to: About dataset concatenation?
Reply with quote

if You look at the manuals ( link at top of the page )
the dd concatenation rules are explained in :
JCL Reference
JCL guide
Back to top
View user's profile Send private message
Anuj D.

Senior Member


Joined: 22 Apr 2006
Posts: 1123
Location: Phoenix,AZ

PostPosted: Thu Apr 17, 2008 1:41 pm    Post subject:
Reply with quote

Hi,

Did you try the posted JCL..what were the results? BTW, did you concatenate something actually ?

Tough answers so far..ah..& one more I put here; Might be all these are those answers you were not looking for, but if you follow one, they would provide a better learning..for now just give a try to Enrico's suggestion & get back to us with your findings.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 900
Location: germany

PostPosted: Thu Apr 17, 2008 1:52 pm    Post subject:
Reply with quote

concatenation occurs when you have more than one dd statement for a dd reference.

in your example:
Code:

//d1    dd dsn=one
//d2    dd dsn=two
//sysin dd dummy
//d3    dd dsn=three


there is no concatenation.

in the following example, the two ds (one, and two) are concatenated for reference d1:

Code:

//d1    dd dsn=one,disp=shr
//      dd dsn=two,disp=shr
//sysin dd dummy
//d3    dd dsn=three,disp=shr


I have added a disp parm soas to create a complete dd statement.
Back to top
View user's profile Send private message
Bandita Bahubalendra

New User


Joined: 08 May 2008
Posts: 3
Location: Bangalore

PostPosted: Thu May 08, 2008 11:53 am    Post subject: about cocatenation
Reply with quote

Hi,

This is not the correct syntax of concatenation,i do not think it wll work for cocating the dataset.u can try wit the below one.

//indd dd dsn=dd1
// dd dsn=dd2
//sysin dd dummy
//outdd dd dsn=dd3
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2182
Location: Brussels once more ...

PostPosted: Thu May 08, 2008 12:03 pm    Post subject:
Reply with quote

Why do YOU not try it yourself and let US know what happens ???
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6010
Location: 221 B Baker St

PostPosted: Thu May 08, 2008 12:05 pm    Post subject:
Reply with quote

Hello,

Quote:
This is not the correct syntax of concatenation
Why do you believe this? The jcl posted by DBZ is completely correct. Yours is just another way of saying (basically) the same thing. Yours could use a disp. . .

Also, notice that earlier jcl posts are quite readable - yours is harder to read. Please practice and learn how to use the "Code" tag near the top of the Reply panel.

It is best to not post something you believe, but rather things that you have tested.
Back to top
View user's profile Send private message
Bandita Bahubalendra

New User


Joined: 08 May 2008
Posts: 3
Location: Bangalore

PostPosted: Thu May 08, 2008 12:21 pm    Post subject: about cocatenation
Reply with quote

HI,

sorry,I have not replied to the DBZ mail.Thanks for ur information.i replied to the kvsumar mail.One thing i hv not posted it without testing it.Alredy i hv worked on that.What DBZ has given,i know it is absolutely correct.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1420

PostPosted: Thu May 08, 2008 11:16 pm    Post subject:
Reply with quote

If the OP was presenting his recollection of an interview ques, it may have been this:
Code:
//d1  dd dsn=one
//    dd dsn=two
//    dd dummy
//    dd dsn=three


I've seen this on a few interviews. They want to know the effect of "dummy" on the processing of the concatenated data.

The "dummy" acts as an EOF and dsn=three is not processed.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6010
Location: 221 B Baker St

PostPosted: Fri May 09, 2008 3:26 am    Post subject:
Reply with quote

Hello BB,

Quote:
sorry,I have not replied to the DBZ mail.Thanks for ur information.i replied to the kvsumar mail.
Just a hint/suggestion. . .

When you post a reply to other than the most recent reply, it is a good idea to refer to the one you are replying to. One way to do this is to quote from the reply you want the reply to apply to. Another is to mention the poster's name.

Good luck and enjoy the forums icon_smile.gif


Jack,

Good catch, methinks icon_wink.gif

d
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1420

PostPosted: Sat May 10, 2008 12:54 am    Post subject:
Reply with quote

Dick,

Methinks, too. But who know's?
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 140
Location: hyderabad

PostPosted: Sun May 11, 2008 12:05 am    Post subject:
Reply with quote

what mmwife said is correct.I know it is an interview question. icon_smile.gif

Thanks
Krishy
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6010
Location: 221 B Baker St

PostPosted: Sun May 11, 2008 12:42 am    Post subject: Reply to: About dataset concatenation?
Reply with quote

But we suspect that the way it was posted here is not the way it was asked at the interview. . .

As asked here, there was no concatenation icon_confused.gif

d
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1