IBM interview question...plz give me answers ?
Moderators: dbzTHEdinosauer, Moderator Group
-
- Member
- Posts: 5
- Joined: Tue Aug 10, 2010 7:38 pm
- Location: chennai
IBM interview question...plz give me answers ?
It was a very frustrating day for me.
Interviewer asked
1. write a jcl for creating a pds which can contain atleast 70 members ?
I ANSWERED THIS QUESTION VERY CONFIDENTLY. AFTER THAT...
2. How would you test your load module ?
you are not left with the source code. you have only load module how would test that ?
3. Suppose for a jcl job i am getting maxcc = 0. now what i want you to display is maxcc = 1024 for the same jcl job ?
4. What is the difference between IGYWCLG and IGYCRCTL ?
5. How many no. of maximum columns is possible for creating a primary key for a table ?
6. What is the basic difference between FIXED BLOCK and VARIABLE BLOCK
for a PS , PDS AND PDSE ?[/b]
Interviewer asked
1. write a jcl for creating a pds which can contain atleast 70 members ?
I ANSWERED THIS QUESTION VERY CONFIDENTLY. AFTER THAT...
2. How would you test your load module ?
you are not left with the source code. you have only load module how would test that ?
3. Suppose for a jcl job i am getting maxcc = 0. now what i want you to display is maxcc = 1024 for the same jcl job ?
4. What is the difference between IGYWCLG and IGYCRCTL ?
5. How many no. of maximum columns is possible for creating a primary key for a table ?
6. What is the basic difference between FIXED BLOCK and VARIABLE BLOCK
for a PS , PDS AND PDSE ?[/b]
ashu
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 5
- Joined: Tue Aug 10, 2010 7:38 pm
- Location: chennai
Hii Anuj
Answers :
1. SPACE = (TRK,(5,3),12) WOULD BE ENOUGH TO CONTAIN 70 MEMBERS.
AS WE KNOW THE FORMULA IS
NO. OF MEMBER INSIDE A PDS=6N-1 WHERE N IS THE DIRECTORY BLOCK.
2. LOAD MODULE---I DID NOT GIVE THE ANSWER.
3. IGYWCLG IS FOR COMPILING,LINKING-EDITING AND GO.
IGYCRCTL IS FOR JUST COMPILING.
4. MAXCC--------DID NOT ANSWERED
5. COMBINATION OF ENTIRE COLUMN PRESENT IN A TABLE CAN BE USED TO DEFINE A PRIMARY KEY I.E. FOR A TABLE MAX NO. COLUMN POSSIBLE IS 750.
NO DEAR I HAVE NEVER USED THIS KIND OF FORUM FOR ANY PURPOSE SO I WAS DOING BLA BLA BLA
1. SPACE = (TRK,(5,3),12) WOULD BE ENOUGH TO CONTAIN 70 MEMBERS.
AS WE KNOW THE FORMULA IS
NO. OF MEMBER INSIDE A PDS=6N-1 WHERE N IS THE DIRECTORY BLOCK.
2. LOAD MODULE---I DID NOT GIVE THE ANSWER.
3. IGYWCLG IS FOR COMPILING,LINKING-EDITING AND GO.
IGYCRCTL IS FOR JUST COMPILING.
4. MAXCC--------DID NOT ANSWERED
5. COMBINATION OF ENTIRE COLUMN PRESENT IN A TABLE CAN BE USED TO DEFINE A PRIMARY KEY I.E. FOR A TABLE MAX NO. COLUMN POSSIBLE IS 750.
NO DEAR I HAVE NEVER USED THIS KIND OF FORUM FOR ANY PURPOSE SO I WAS DOING BLA BLA BLA
ashu
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 5
- Joined: Tue Aug 10, 2010 7:38 pm
- Location: chennai
6th question
its a kind of record format used in jcl to provide the information how the data is going to be allocate.
in fixed block the fix space would be allocated for the data and in variable depends upon the size of data it would allocate the space.
in fixed block the fix space would be allocated for the data and in variable depends upon the size of data it would allocate the space.
ashu
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Re: IBM interview question...plz give me answers ?
You execute your programs with only executable "load-modules" - source-code is not executaable. So, you'll provide the path (STEPLIB) for the load-module.2. How would you test your load module ? you are not left with the source code. you have only load module how would test that ?
Were there some more inputs from the interviewer on this or did you try to know what exactly he is asking?
Write a COBOL program which moves 1024 to the RETURN-CODE special register and execute it as one of the steps of that Job.3. Suppose for a jcl job i am getting maxcc = 0. now what i want you to display is maxcc = 1024 for the same jcl job ?
IGYCRCTL is a COBOL compiler while IGYWCLG Compile, link-edit, and run procedure.4. What is the difference between IGYWCLG and IGYCRCTL ?
Regards,
Anuj
Anuj
For you question 3,here is another way,
// IF (STEP00S1.RC EQ 0)
//STEP00S2 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//INFILE DD DUMMY
//OUTFILE DD DUMMY
//SYSIN DD *
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IF MAXCC EQ 0 -
THEN SET MAXCC=1024
ELSE SET MAXCC=1024
/*
//SYSPRINT DD SYSOUT=*
// ENDIF
STEP00S1 is cobol program step
// IF (STEP00S1.RC EQ 0)
//STEP00S2 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//INFILE DD DUMMY
//OUTFILE DD DUMMY
//SYSIN DD *
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IF MAXCC EQ 0 -
THEN SET MAXCC=1024
ELSE SET MAXCC=1024
/*
//SYSPRINT DD SYSOUT=*
// ENDIF
STEP00S1 is cobol program step
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
I don't think that IDCAMS will work for this case, have you checked it? For this, my results shows:
Code: Select all
//STEP00S2 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=*
//INFILE DD DUMMY
//OUTFILE DD DUMMY
//SYSIN DD *
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IF MAXCC EQ 0 -
THEN SET MAXCC=1024
ELSE SET MAXCC=1024
/*
//SYSPRINT DD SYSOUT=*
I've not verified some other possibiolity in VSAM Demystified, though.IDCAMS SYSTEM SERVICES TIME: 06:45:39
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IDC3300I ERROR OPENING NULLFILE
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IF MAXCC EQ 0 -
THEN SET MAXCC=1024
ELSE SET MAXCC=1024
IDC3207I REMAINDER OF COMMAND INPUT STREAM IGNORED
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 16
Regards,
Anuj
Anuj
-
- Member
- Posts: 5
- Joined: Tue Aug 10, 2010 7:38 pm
- Location: chennai
Info
2.As u r suggesting for the load module to use steplib.
In that case we need to execute that load module.
But the interviewer said i want to test without executing the load module..
as if i don't under how would one can test without executing it.
In that case we need to execute that load module.
But the interviewer said i want to test without executing the load module..
as if i don't under how would one can test without executing it.
ashu
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Anuj,
We can not use idcams under this situation,IDCAMS can have only MAXCC=16
//CHKDUPS0 EXEC PGM=IDCAMS,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//INFILE DD DSN=DATA1,DISP=SHR
//OUTFILE DD DSN=DATA2,DISP=SHR
//SYSIN DD *
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IF MAXCC EQ 0 -
THEN SET MAXCC=16
ELSE SET MAXCC=0
/*
//*
//
We can not use idcams under this situation,IDCAMS can have only MAXCC=16
//CHKDUPS0 EXEC PGM=IDCAMS,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//INFILE DD DSN=DATA1,DISP=SHR
//OUTFILE DD DSN=DATA2,DISP=SHR
//SYSIN DD *
REPRO INFILE(INFILE),OUTFILE(OUTFILE) REPLACE COUNT (1)
IF MAXCC EQ 0 -
THEN SET MAXCC=16
ELSE SET MAXCC=0
/*
//*
//
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Yes, that's correct mouse13. I had not had time on my hnads, that day, to verify the facts. Actually, you can set the RC to any value 0-4095, but you'll find that the maximum RC that can be set by user request is 16 within IBM utility programs such as IDCAMS and DFdss. But if someone wants to have some higher RC it takes an Assembler program to get the desired value into GPR 15 or a COBOL program as I mentioned earlier.
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page