CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
JCL Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM MAINFRAME INTERVIEW QUESTIONS JCL INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

JCL Interview Questions & Answers - Learning Mode

Job Control Language (JCL) is a scripting language used on IBM mainframe operating systems to instruct the system on how to run a batch job or start a subsystem. JCL (job control language) is a language for describing jobs (units of work) to the MVS, OS/390, and VSE operating systems, which run on IBM's S/390 large server (mainframe) computers. These operating systems allocate their time and space resources among the total number of jobs that have been started in the computer.

Try JCL Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 9 10 Next

Sort By : Latest First | Oldest First | By Rating

JCL Interview Questions & Answers - Learning Mode
Try JCL Interview Questions & Answers - Exam Mode
Question: What is abend s322



Answer: S322 means the system has run out on the CPU time and the job is being cancelled. My first guess is, check your program if it went into any infinite loop, if not try to change the class and Time keyord parameters in the JCL. If you still get the Abend I would say you have a problem in your COBOL program... check the loops..


Source: CoolInterview.com
Question: What is the use of sysprint, sysin, sysout, dummy in jcl ?



Answer: SYSPRINT: All system output will appear under this DD card. Suppose you are copy'ing a VSAM file using IDCAMS. Then, number of records processed, highest condition code etc.. will appear under sysprint. You cannot customise SYSPRINT output.

SYSIN: This is nothing but SYStem INstruction. Suppose, you want to sort a file on certain key. You have to have following command under SYSIN.

SORT FIELDS = (starting-col,length,data-type,A/D)

SUM FIELDS = NONE

DUMMY: Mainly u Source: CoolInterview.com
Question: What is a PROC? What is the difference between an instream and a catalogued PROC?



Answer: PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset. Source: CoolInterview.com
Question: 56) What are the files which are automatically opened when a C file is executed?
Answer:
stdin, stdout, stderr (standard input,standard output,standard error).



Answer: 57) what will be the position of the file marker?
a: fseek(ptr,0,SEEK_SET);
b: fseek(ptr,0,SEEK_CUR);

Answer :
a: The SEEK_SET sets the file position marker to the starting of the file.
b: The SEEK_CUR sets the file position marker to the current position
of the file.
Source: CoolInterview.com
Question: 102) void main()
{
int i=i++,j=j++,k=k++;
printf(?%d%d%d?,i,j,k);
}


Answer: Answer:
Garbage values.
Explanation:
An identifier is available to use in program code from the point of its declaration.
So expressions such as i = i++ are valid statements. The i, j and k are automatic variables and so they contain some garbage value. Garbage in is garbage out (GIGO).


Source: CoolInterview.com
Question: 62) main()
{
char *str1="abcd";
char str2[]="abcd";
printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));
}


Answer: Answer:
2 5 5
Explanation:
In first sizeof, str1 is a character pointer so it gives you the size of the pointer variable. In second sizeof the name str2 indicates the name of the array whose size is 5 (including the ' Source: CoolInterview.com
Question: 12. main()
{
int c=- -2;
printf("c=%d",c);
}


Answer: Answer:
c=2;
Explanation:
Here unary minus (or negation) operator is used twice. Same maths rules applies, ie. minus * minus= plus.
Note:
However you cannot give like --2. Because -- operator can only be applied to variables as a decrement operator (eg., i--). 2 is a constant and not a variable.
Source: CoolInterview.com
Question: 8. main()
{
char *p;
printf("%d %d ",sizeof(*p),sizeof(p));
}



Answer: Answer:
1 2
Explanation:
The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.

Source: CoolInterview.com
Question: How you can delete a particular record from jcl? That is a file(PS) has 50 records, i need to delete the 5th record without any condition, how you will do it?

Answer: copy ps file to ksds file by using repro comand..its nothing but assining a index to the records ..by using the index=4(initial=0) and delete comand in sysin we can delete the particular record no 5. Source: CoolInterview.com
Question: 39) main()
{
int i=0;

for(;i++;printf("%d",i)) ;
printf("%d",i);
}


Answer: Answer:
1
Explanation:
before entering into the for loop the checking condition is "evaluated". Here it evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop).

Source: CoolInterview.com
Question:
33) main()
{
static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for (i=0;i<=4;i++)
printf("%s",names[i]);
}


Answer: Answer:
Compiler error: Lvalue required in function main
Explanation:
Array names are pointer constants. So it cannot be modified.

Source: CoolInterview.com
Question: What are SD37, SB37, SE37 abends?

Answer: All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified. SE37 - Max. of 16 extents already allocated. Source: CoolInterview.com
Question: What is COND=EVEN ?

Answer: Means execute this step even if any of the previous steps, terminated abnormally. Source: CoolInterview.com
Question: 79) main()
{
char *p;
int *q;
long *r;
p=q=r=0;
p++;
q++;
r++;
printf("%p...%p...%p",p,q,r);
}


Answer: Answer:
0001...0002...0004
Explanation:
++ operator when applied to pointers increments address according to their corresponding data-types.

Source: CoolInterview.com
Question: 21. #define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}


Answer: Answer:
64
Explanation:
the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64
Source: CoolInterview.com
Question: What does a disposition of (NEW,CATLG,KEEP) mean?

Answer: That this is a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it. Source: CoolInterview.com
Question: 47) main( )
{
int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};
printf(?%u %u %u %d ?,a,*a,**a,***a);
printf(?%u %u %u %d ?,a+1,*a+1,**a+1,***a+1);
}


Answer: Answer:
100, 100, 100, 2
114, 104, 102, 3
Explanation:
The given array is a 3-D one. It can also be viewed as a 1-D array.

2 4 7 8 3 4 2 2 2 3 3 4
100 102 104 106 108 110 112 114 116 118 120 122

thus, for the first printf statement a, *a, **a give address of first element . since the indirection ***a gives the v Source: CoolInterview.com
Question: 45) main()
{
extern out;
printf("%d", out);
}
int out=100;


Answer: Answer:
100
Explanation:
This is the correct way of writing the previous program.
Source: CoolInterview.com
Question: Explain concatenating datasets.



Answer: Concatenation is also used to append files in the JCL for a single ddname. The order of appending will be from top FILE to bottom FILE. And the order of the RECORDS concatenated, stays still. MERGing files differ from concatenation, in a way that it will also SORT after appending.

When you specify multiple dataset to be concatenated in Joblib or Steplib, the library with largest blocksize will be picked first.

You can concatenate upto 255 sequential files and 16 PDS files with a s Source: CoolInterview.com
Question: 90) main(){
unsigned int i;
for(i=1;i>-2;i--)
printf("c aptitude");
}


Answer: Explanation:
i is an unsigned integer. It is compared with a signed value. Since the both types doesn't match, signed is promoted to unsigned value. The unsigned equivalent of -2 is a huge value so condition becomes false and control comes out of the loop.
Source: CoolInterview.com

1 2 3 4 5 6 7 8 9 10 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.03125 Seconds