IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we concatenate an emptydataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Mon Jan 30, 2006 10:59 am
Reply with quote

Hai guys,
Can we concatenate an empty dataset with a non empty dataset? if yes what will be the content of concatenated dataset?


Thanks,
Elonics.
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Mon Jan 30, 2006 11:58 am
Reply with quote

Hi Elonics,

Could you please be elaborate? why do u want to concatnate an empty dataset?

I think if u cancatenate an empty dataset with a non empty dataset, then the resultant will be the original non empty dataset..

Thanks,
Mani
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Mon Jan 30, 2006 12:08 pm
Reply with quote

It was put to me in an interview. Are you sure the concatenated dataset will become empty datset?


Thanks,
Elonics.
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Mon Jan 30, 2006 12:27 pm
Reply with quote

No, The resultant will be a non Empty Dataset.
Back to top
View user's profile Send private message
dtalele
Currently Banned

New User


Joined: 25 Jan 2006
Posts: 13
Location: mumbai

PostPosted: Mon Jan 30, 2006 1:11 pm
Reply with quote

Hi Elonics,

we can concatinate the empty dataset with the nonempty dataset & the contents will be the nonempty dataset
Back to top
View user's profile Send private message
shinepushpan

New User


Joined: 23 Jan 2006
Posts: 6

PostPosted: Mon Jan 30, 2006 1:48 pm
Reply with quote

It's common for interviewers to ask questions which confuses. Let's approach the issue with a clear mind.

Concatenation means having more than one physical file for a single logical file. Assume the following JCL

//Concat dd dsn=Test.nonempty.file,disp=shr
dd dsn=Test.empty.file,disp=shr

Here for all practical purposes, these two files together is considered as a single file ie 'Concat'. When a program reads 'Concat', it starts reading from the first file till the last record and then the second file. If the second file is empty, EOF will be reached on the EOF of first file. This doesn't create a technical problem. I do not see an issue in concatenating an empty file.

If its still not clear, please let me know.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts concatenate sysin to dsn JCL & VSAM 7
No new posts Need help to concatenate files with w... All Other Mainframe Topics 3
No new posts Concatenate two files of variable rec... DFSORT/ICETOOL 3
No new posts Is possible to concatenate multiple P... DFSORT/ICETOOL 6
Search our Forums:

Back to Top