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: 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: 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: What is the advatage of coding RECFM=F over RECFM=FB.

I know the concept that RECFM=FB is fast, easily accessable due to the fact that FEW (not 1 records) records are allocated to each BLOCK. Then who would like to specify RECFM=F? And why?



Answer: Some old legacy packages/ programs had it. You may find it even now in old Cobol code as hard coded - you can't do anything without changing code and recompliling.

One of the reasons why F was needed - DA files (DA - Direct Access).

There are 2 or 3 types of them and the most popular one - REGIONAL1 had to have F format.

Nobody uses then anymore in application programming, but they are alive and well in some old tools/DBMS, like Datacom.

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: 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: 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: 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: 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: What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?



Answer: DISP=OLD --> Exclusive HOLD. Read from beginning of dataset. But if u write, then it will overwrite on existing data. i.e old data is lost.

DISP=MOD --> Exclusive HOLD. You can write to the end of the file without loosing your old data (i.e append the data to the existing file).

DISP=SHR --> multiple user can share the data. Its read-only file.

With Regards to COBOL:

DISP=SHR and OPEN EXTEND in-file => will append the file at the end. Used mainly for lin Source: CoolInterview.com
Question: 24. #define clrscr() 100
main()
{
clrscr();
printf("%d ",clrscr());
}


Answer: Answer:
100
Explanation:
Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input program to compiler looks like this :
main()
{
100;
printf("%d ",100);
}
Note:
100; is an executable statement but with no action. So it doesn't give any problem

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: How do you designate a comment in JCL?



Answer: we can use

//* for writing the comments

and also

we can write any where after code give one space and write the comments ...
Source: CoolInterview.com
Question: How do you restart a proc from a particular step?

Answer: In job card, specify RESTART=procstep.stepname

where procstep = name of the jcl step that invoked the proc

and stepname = name of the proc step where you want execution to start Source: CoolInterview.com
Question: What is the meaning of keyword in JCL? What is its opposite?



Answer: Some part of the jcl is a must in all JCL's we code

For eg ://SYSIN statement ,//SYSOUT statement etc.,

Here SYSIN and SYSOUT are the keywords in jcl

These keywords will not change for any JCL they are generic

All others are the DD names so are likely to change
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: 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: 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: 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

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.46875 Seconds