Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we concatenate an emptydataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we concatenate an emptydataset
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    Post subject:
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    Post subject: Re: Can we concatenate an emptydataset
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    Post subject:
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    Post subject: Re: Can we concatenate an emptydataset
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    Post subject: Re: Can we concatenate an emptydataset
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Concatenate different LRECL GDG's Rohit Umarjikar DFSORT/ICETOOL 6 Wed Nov 18, 2015 3:30 am
No new posts Concatenate 2 different VB files to a... santhosh5983 DFSORT/ICETOOL 8 Sat Oct 10, 2015 2:12 am
No new posts How to concatenate a dataset with SYS... swathykrishnan CLIST & REXX 8 Tue Sep 01, 2015 6:08 pm
No new posts how to concatenate two cobol loadlib ... boyti ko CLIST & REXX 2 Mon Jun 29, 2015 4:41 pm
No new posts Sort card to concatenate two records ... sakrat DFSORT/ICETOOL 27 Thu Apr 23, 2015 2:53 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us