Question was:-----------
1.How would you test your load module ?
you are not left with the source code. you have only load module how would test that ?
2. 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 ?
3. What is the difference between IGYWCLG and IGYCRCTL ?
4. How many no. of maximum columns is possible for creating a primary key for a table ?
5. What is the basic difference between FIXED BLOCK and VARIABLE BLOCK for a PS , PDS AND PDSE ?
What i answered:-----
1. LOAD MODULE---I DID NOT GIVE THE ANSWER.
2. IGYWCLG IS FOR COMPILING,LINKING-EDITING AND GO.
IGYCRCTL IS FOR JUST COMPILING.
3. MAXCC--------DID NOT ANSWERED
4. 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.
5.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.
IBM interview question ...Do reply pls.
-
- Posts: 2
- Joined: Wed Aug 11, 2010 10:37 pm
- Skillset: JCL,VSAM,CICS,DB2,COBOL
- Referer: Friends
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: IBM interview question ...Do reply pls.
1. This is REAL black-box testing! Look at the specifications for the program and provide inputs that match the specifications to ensure the program is working correctly for good input, then provide outputs that do not match the specifications to verify that the program handles incorrect input correctly. Then you can try different things to see what happens, for example, if the program runs with no DD statements, to check on how it handles wild card behavior.
2. I would ask why someone would want a zero job return code changed to 1024 -- this makes no sense. However, if required I would add a step running a program I wrote in COBOL to set the RETURN-CODE to 1024. This step would be bypassed if any previous step had a non-zero return code.
3. IGYWCLG is JCL provided by IBM to compile, link, and execute (run) a COBOL program. IGYCRCTL is the name of the COBOL compiler for Enterprise COBOL and is executed in the first step of IGYWCLG.
4. Assuming this is DB2, I don't deal with DB2 so couldn't answer.
5. Fixed block means each block of data (except possibly the last one) will contain the same number of bytes. The LRECL must evenly divide the block size (you cannot put 6.5 records in a block). Variable block means the number of bytes in each block can vary. LRECL does not evenly divide the block size. Each block and each record has a 4-byte prefix that contains the block or record length in it. There's not really any difference in PS and PDS files as far as block size goes; I don't know about PDSE as I don't use them enough.
2. I would ask why someone would want a zero job return code changed to 1024 -- this makes no sense. However, if required I would add a step running a program I wrote in COBOL to set the RETURN-CODE to 1024. This step would be bypassed if any previous step had a non-zero return code.
3. IGYWCLG is JCL provided by IBM to compile, link, and execute (run) a COBOL program. IGYCRCTL is the name of the COBOL compiler for Enterprise COBOL and is executed in the first step of IGYWCLG.
4. Assuming this is DB2, I don't deal with DB2 so couldn't answer.
5. Fixed block means each block of data (except possibly the last one) will contain the same number of bytes. The LRECL must evenly divide the block size (you cannot put 6.5 records in a block). Variable block means the number of bytes in each block can vary. LRECL does not evenly divide the block size. Each block and each record has a 4-byte prefix that contains the block or record length in it. There's not really any difference in PS and PDS files as far as block size goes; I don't know about PDSE as I don't use them enough.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: IBM interview question ...Do reply pls.
Actually, Mr. Sample's discussion of fixed block is incorrect. Mr. Samples is describing fixed block standard (FBS). The only requirement for FB is each block is a multiple of the LRECL, but there is no requirement for any block to be the maximum length block.
As an experiment a few years ago I wrote a PDS copy utility for FB and VB data sets where I wrote for the last block on a track the maximum block that would actually fit and was consistent with the LRECL rule. I had high hopes this would save a lot of space, but it didn't, even though each track was optimzed. However, SPF and other programs read this weird stuff without complaint.
As an experiment a few years ago I wrote a PDS copy utility for FB and VB data sets where I wrote for the last block on a track the maximum block that would actually fit and was consistent with the LRECL rule. I had high hopes this would save a lot of space, but it didn't, even though each track was optimzed. However, SPF and other programs read this weird stuff without complaint.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: IBM interview question ...Do reply pls.
Hello,
Might not be a "requirement", but you'll not find typical qsam files that were written with "short blocks" in the middle - all but the last block will be blksize . . . Things can happen later to cause embedded "short blocks" but this is not an interview question for a student or "fresher"/beginner.
The only requirement for FB is each block is a multiple of the LRECL, but there is no requirement for any block to be the maximum length block.
Might not be a "requirement", but you'll not find typical qsam files that were written with "short blocks" in the middle - all but the last block will be blksize . . . Things can happen later to cause embedded "short blocks" but this is not an interview question for a student or "fresher"/beginner.
Hope this helps,
d.sch.
d.sch.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: IBM interview question ...Do reply pls.
I agree. In any event, in the real world the only way you have short blocks embedded in an FB data set is if you do MOD a few times. This is why MOD is not allowed for FBS. My PO copy program that I discussed was cheating all the way, but it was a useful experiment, even if it didn't produce the results I had hoped for.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: IBM interview question ...Do reply pls.
Hi Steve,
Be well,
d
These are often the ones where the most is learnedbut it was a useful experiment, even if it didn't produce the results I had hoped for.

Be well,
d
-
- Posts: 2
- Joined: Wed Aug 11, 2010 10:37 pm
- Skillset: JCL,VSAM,CICS,DB2,COBOL
- Referer: Friends
Re: IBM interview question ...Do reply pls.
Thank you for your answers.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Parsing more than 1000 columns in a sort card Reply with quo
by ssuthagar » Tue Sep 22, 2020 3:02 am » in Syncsort/Synctool - 1
- 3440
-
by sergeyken
View the latest post
Tue Sep 22, 2020 9:06 pm
-
-
- 2
- 2275
-
by Pedro
View the latest post
Tue Feb 27, 2024 4:44 am