View previous topic :: View next topic
|
Author |
Message |
satyabrat jena
New User
Joined: 06 Apr 2007 Posts: 3 Location: BANGALORE
|
|
|
|
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 |
|
|
venosol Warnings : 1 New User
Joined: 16 Nov 2006 Posts: 43 Location: Bangalore
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
khannay2k
New User
Joined: 24 Feb 2005 Posts: 28 Location: Bangalore
|
|
|
|
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 |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
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.. |
|
Back to top |
|
|
|