ALL Interview Questions
ALL Interview Questions
ALL Interview Questions
execution
Rank 0 0
Answer Answer
SYS1.LINKLIB 1234 Name the system library from which modules are execution
Rank 0
Question
There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem? Hi, I don't know the exact answer to this query. But I have following approach. Suppose I have a cobol pgm (say) PGM123 that is picking up files randomly. (We definately need 1 application pgm to process any of those 10 files randomly. This is my basic assumption) I will code a PARM or SYSIN DD * where in my customer can change order of selection of files . Say if customer enters PARM as ABCD in order then I will move this PARM ABCD in a working storage variable in COBOL PGM and will read each byte A (assign to process file-1) if second byte is B then process file-2 of third byte is C then process file-3 and so on. If the cutomer changes this parm as EDA then files processed will be file-5 then file-4 then file-1. If any body has different approach pls let me know.
Rank
Answer Posted By
Answer
Yogendra Shinde
Question Answer
I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ( How do you code instream data in a JCL? ) //SYSIN DD* input data input data /* ONE WAY OF ACCEPTING THE DATA IS // SYSIN DD* VALUE1 VALUE2 */ AND OTHER WAY YOU CAN USE FILE TO ACCEPT THE DATA INCLUDE THAT FILE INTO YOUR RUN JCL.
Rank 0
Answer
Ritesh Kumar
Answer
ONE WAY OF ACCEPTING THE DATA IS // SYSIN DD* VALUE1 VALUE2 */ AND OTHER WAY YOU CAN USE PARM PARAMETER IN YOUR JCL. IN APPLICATION PROGRAM USE THAT DATA THROUHG LINKAGE SECTION. I have multiple jobs ( JCLs with several JOB member. What happens if I submit it? Multiple jobs are submitted (as many jobs as the number of JOB cards). no answer for this see there should be only one job card in one jcl but there can be 255 steps for example in C land there should be only one main right can N E body tell me more plz
Sandeep
Rank 0
Answer Answer
0 0
Answer
whenever ur submitting multiple jobs @ a same time u'l hav give the priority for the execution of jobs. according to the priority the jobs will b executed 1 by 1. you can have any number of job cards in a single jcl.only
Siddhartha
Answer
Sudha
the job steps is limited to 255 steps How do you send the output of a COBOL program to a a PDS?
Rank 0
Code the DSN as PDS (member) with a DISP = SHR. The DISP applies to the PDS and not to a specific member.
Rank 0
Rank 1
Answer
Balakrishnan,maples148
Answer
Shakila Vinayagam
character set data. 5) Print sequential data sets, members of partitioned data sets or PDSEs or USS files. 6) Reblock or change the logical record length of a data set. 7)Copy user labels on sequential output data sets.
Rank 0 0
resolve the soc4 & soc7 han following answers. n resolved using mispleed dd name and dd name is not g with file
Rank
Answer Posted By
7 check the sysdump and copy the offest address then it in the program.
curs mainly due to protection exception. It means u trying to move a larger variable to a small e. Whereas S0C7 is data exception. It occurs when to move a non numeric value to a Numeric variable.
curs mainly due to protection exception. It means u are using subcripts for example my subsripts range ut I am trying 12 & your compiler option is ssrange soc4 error.
Sandeep
e causes for the Abend SOC4 include: alid address was referenced due to subscript error or ameter passed
Sujan
e are moving a group move, then the receiving record e lenght is defined incorrectly, like the target ize is less than the moving field size. iles, if we are trying to read or write a file which open, then we can get SOC4. d to goback in the SORT output procedure.
e differences between COBOL and java ? why we are more preference to COBOL ?
Rank
Answer Posted By
s a structured language where as Java is a High level ect oriented Language. Cobol has extensive facilities ort generation.
Ragahvendra
Rank
Answer Posted By
Pal
Rank
Answer Posted By
Jagadesh
Rank
Answer Posted By
Guest
for Search all: File contains 100 records. supose searching for 75 th record, first entire file into two parts, it will check , whether record is t half or second.. like that file ds divded into t parts
ial serach: if the file contains 100 records, spose looking for 75th record, it will start serach from ecord...
Rank
Answer Posted By
Guest
Rank
Answer Posted By
Guest
Rank
Answer Posted By
Guest
Rank
Answer Posted By
g is ued for counting the lettlers.. ued in Inspect statement pic x(10) value 'raja ramesh'
Guest
ws-variable
nt count the letter "r' count. u can use the g variable... let me now if u need any clarifiaction on this..
yahoo.co.in
Rank
Answer Posted By
s used for writing a record in the output file. This record will not be overwritten by the next WRITE nt for the same record name.
Guest
used to assign some data value to a variable. This the variable will be overwritten by the next MOVE nt for the same varaible name.
Rank
Answer Posted By
Manthan
Jagadesh
#1 is correct but incomplete. a) "VALUE" close can used in occurring fields b) Occuring fields are the at will redefine other fields not the other way
: CORRECT
FIELD PIC X(21) VALUE 'SUNMONTUEWEDTHUFRISAT'. REDEFINES LIT-FIELDS. EEK-DAY OCCURS 7 PIC X(03). CT:. -DAY OCCURS 7 PIC X(03). FIELDS REDEFINES WEEK-DAY VALUE 'SUNMONTUE.........'
S codes in ,DB2,CICS
Rank
Answer Posted By
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) (c) + OR (d) It is not possible
Rank
Answer Posted By
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above
Rank
Answer Posted By
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
Rank
Answer Posted By
Santosh Khot
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
Rank
Answer Posted By
with ()
Amit
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
Rank
Answer Posted By
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
Rank
Answer Posted By
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
Rank
Answer Posted By
Answer is again 10. Add 40 to x : x + 40 : 10 + 40 = 50 X = 3*X - 40 3 * x = 50 * 3 = 150, but since x declared as PIC 99, 1 will be truncated from 150. so now the value of x would be 50. so 50 - 40 is again 10.
Rama Krishna
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
Rank
Answer Posted By
x=x-20 will be -10 Since there is a -ve sign in the beginning it'll be stored on top of the last digit. So -0 = }. Then ans will be 1}
Madhu
OCCURS clause is used in the DATA DIVISION data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49
on
Rank
Answer Posted By
Guest
Vijay Korde
d is correct answer, because occurs clause can not be used for 01 and 77, 88 levels
A * B - C * D and X = (A * B) - (C * D) Are not the same Are same Syntactically wrong Will yield a run time error
Rank
Answer Posted By
Questions Page
and SPACES are constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete
Rank
Answer Posted By
d By :: Santhi
ALL Interview .com
ed this Question!!
l entry is used
(a) data items ING-STORAGE (b) items with clause (c) condition(d) None of the
Rank
Answer Posted By
d By :: Santhi
ALL Interview .com
ed this Question!!
ane
the output
Rank
Answer Posted By
ed by the ng code? 01 GRP-I. 05 SUBFLD1 VALUE "AB". 05 FILTER ) VALUE SPACES. 01 GRP-2 ED GRP-1. 05 SUB-FLD2 05 SUB-FLD3
DISPLAY "
ELSE
DISPLAY " DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
d By :: Santhi
ALL Interview .com
ed this Question!!
Rank
Answer Posted By
PIC
(a) Nothing is
(c) PIC can't ified for a tem. (d) DD, MM, and invalid es.
d By :: Madhav
ALL Interview .com
ed this Question!!
y bytes will be ed for the ng record tion ries? 01 REC-A. 05 A PIC 05 B PIC 05 C PIC
Rank
Answer Posted By
9.
d By :: Madhav
ALL Interview .com
ed this Question!!
ng will be llocation:
Guest
4 bytes.
Madhu
8 bytes.
lowing entries in the WORKINGSECTION: 01 DATE-TODAY. 05 YY PIC E "90". 05 MM PIC E "12". 05 DD PIC E :31". 01 DATE-EDIT XX/XX. MOVE DATE-TODAY -EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
Rank
Answer Posted By
d By :: Madhav
ALL Interview .com
ed this Question!!
Rank
Answer Posted By
01 END-OF-FILEPIC XXX. 88 NO-MOREVALUE "YES". 88 MORE-RECS NO". (i) READ FILE AT END ES" TO NO-MORE-
ch are wrong? (a) (i) and (b) (ii) and (c) (i) and (d) all
d By :: Madhav
ALL Interview .com
ed this Question!!
Vel
Rank
Answer Posted By
d By :: Madhav
ALL Interview .com
ed this Question!!
raph PARA-X is xecuted when the data names B and C have f 1. Which of lowing will this ?
(a) IF A NOT = NOT = 1 OR C PERFORM PARA-X (B) IF NOT A= 1 1 AND C = 1 PARA-X (C) IF A NOT =1 B = 1 OR C= 1 PARA-X (C) IF A NOT = NOT = 1 AND C PERFORM PARA-X
Rank
Answer Posted By
d By :: Madhav
ALL Interview .com
ed this Question!!
Vel
Rank
Answer Posted By
MULTIPLY AB G C
d By :: Madhav
ALL Interview .com
ed this Question!!
What will be ult ? (a) A=88.10, 4 (b) A=87.00 4 (c) A=87.10 4 (d) ERROR!!! DISPLAYed on een.
Rank
Answer Posted By
d By :: Madhav
ALL Interview .com
ed this Question!!
Rank
Answer Posted By
------
MOVE 1
d By :: Madhav
ALL Interview .com
ed this Question!!
Rank
Answer Posted By
d By :: Suman
ALL Interview .com
ed this Question!!
Rank
Answ
ct one of the ng data divusion which dentical lts for both the F statements Z PIC 9
Y VALUE 1.9 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE U 1.9 ne of yhe above
d By :: Suman
ALL Interview .com
Rank
Answ
3)
d By :: Suman
ALL Interview .com
3 * 5 =15
5 * ( 8 + 15) 5 = 35
L SIZE =156
EN EXTEND IN-
tify the correct nt ganization of is sequential ords can d in the ginning ganization of is sequential ords can d in the d ganization of is indexed and can be n the ginning ganization of is indexed and can be n the end
Rank
Answ
d By :: Suman
ALL Interview .com
s a file whose ATION is .you want to e records the file in fashion as well
ially.then which
Rank
Answ
ss mode would cify? QUENTIAL NDOM NAMIC CESS MODE has to do with it
d By :: Suman
ALL Interview .com
ic
ACCUMULATE-
YING A FROM 1 BY A >2 ER B FROM1 BY 1 >2 ER C FROM 2 BY L C<2 many times the ph ACCUMULATEwould be d?
Rank
Answ
d By :: Suman
ALL Interview .com
lt of the B GIVING
Rank
Answer P
r of B/A is
r of A/B is
consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
ion
Rank
consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
ion
Rank
ion
Rank
ion
Rank
ion
Rank
ion
Rank
ion
What is a subscript ?
Rank
array elements.
ion
Rank
ex:if u open your book, if u can find the index inf rist tow pages. table index is also same as this....
index denotes the displacement value and it is system defined.if you are using index variable with occurs clause,it need not have be defined in the data division.but it should be mentioned as i.e syntax is: levelno(02 to 49) identifier occurs n times indexed by indxname
ion
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
Rank
It will be stored as follows: 01 23 4C This is only internal storage representation. But if you display the variable then you will see 1234 not even '+'.
ion
Rank
ion
Rank
erform ?
Rank
Rank
ALL Interview .com
Rank
ALL Interview .com
What is the difference between SEARCH and SEARCH ALL? What is more efficient?
Rank
ALL Interview .com
Basha
Rank
d By :: Guest
n which you will OPEN a file for writing? I also faced this Question!!
output or i/o mode
d By :: Guest 0
Question
What divisions, sections and paragraphs are mandatory for a COBOL program?
Rank
Question
Rank
Question
Rank