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

Diff between overriding parameter and overriding dataset


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satyabrat jena

New User


Joined: 06 Apr 2007
Posts: 3
Location: BANGALORE

PostPosted: Sat Apr 07, 2007 8:26 am
Reply with quote

Hi all,

I have faced some questions in interview.

1.what is the difference between overriding parameter and overriding dataset?
2.If 5 null files will be concatenated with 5 files having records then what will happen?

3.how we can display comp-3 items thru cobol?
4.In IEBGENER we dont have any disp parameter in both sysut1 and sysut2 then what will happen .error will be occured or it will be copied?


Thanks in advance.
----------------------
SATYA
Back to top
View user's profile Send private message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Mon Apr 09, 2007 11:39 am
Reply with quote

satyabrat jena wrote:
Hi all,

I have faced some questions in interview.

1.what is the difference between overriding parameter and overriding dataset?
2.If 5 null files will be concatenated with 5 files having records then what will happen?

3.how we can display comp-3 items thru cobol?
4.In IEBGENER we dont have any disp parameter in both sysut1 and sysut2 then what will happen .error will be occured or it will be copied?


Thanks in advance.
----------------------
SATYA




I only know about the comp-3 .

We cannot display comp- 3 value because they are stored in packed decimals.We need to declare another dataitem for which comp-3 value will passed and we can display the dataitem.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Apr 09, 2007 1:49 pm
Reply with quote

Venu,

Quote:
We cannot display comp- 3 value


Why do you think so?

satyabrat,

Quote:
In IEBGENER we dont have any disp parameter in both sysut1 and sysut2 then what will happen .error will be occured or it will be copied?


If you dont provide DISP to a dataset, by default it takes (NEW,DELETE,DELETE) for any dataset. Since the SYSUT1 is already an existing file, you will get JCL error.

Quote:
2.If 5 null files will be concatenated with 5 files having records then what will happen?


Are you reffering DUMMY as null file?
Back to top
View user's profile Send private message
khannay2k

New User


Joined: 24 Feb 2005
Posts: 28
Location: Bangalore

PostPosted: Mon Apr 09, 2007 2:47 pm
Reply with quote

Satya,

For the question
1. Over riding parameters refers to changing any parameter of the existing JCL like space and Vol parameter of any for that matter.
Eg for parameter overriding
://TBJ370.DTLTRANS DD VOL=SER=ULRL0D,SPACE=(CYL,(50,25),RLSE)
Overriding dataset means you trying to change the dataset with the new overridden one you are specifying.
Eg for dataset overriding:
//TBJ370.DTLTRANS DD temp.*.*
here i am trying ti change the input dataset of the JCL.

Regards,
Rajesh
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Mon Apr 09, 2007 4:27 pm
Reply with quote

Venu,

Quote:
We cannot display comp- 3 value because they are stored in packed decimals.We need to declare another dataitem for which comp-3 value will passed and we can display the dataitem.


I think u went wrong here..

If u simply give a DISPLAY statement in Cobol program, u will get the correct value populated . No need to declare another data item.. icon_smile.gif
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
Search our Forums:

Back to Top