kamal


{ City } chennai
< Country > india
* Profession * se
User No # 11508
Total Questions Posted # 0
Total Answers Posted # 37

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 349
Users Marked my Answers as Wrong # 118
Questions / { kamal }
Questions Answers Category Views Company eMail




Answers / { kamal }

Question { 5019 }

Name some commands used for CICS file browsing.


Answer

hi,
startbr,readnext,readprev

kamal here

Is This Answer Correct ?    0 Yes 0 No

Question { 14845 }

I have one column say 'X' defined as VARCHAR
Can anyone tell me What are the different ways to update
this column thru COBOL-DB2 program?


Answer

hi,
if declare varchar format must declare length and text in
level no 49.

Is This Answer Correct ?    1 Yes 0 No


Question { 11426 }

what is the minimum number of lines a Cobol program should
have to successfully compile and run


Answer

hi,
just two lines enough for with out display anything.it will
successfully compiled and run

Is This Answer Correct ?    1 Yes 1 No

Question { 4292 }

can any one expalin check point with an example?


Answer

chek point is used to when more than one record update in
ur cobol/jcl pgm using RD parameter with chekpoint
is mainrole.because every 100 record or userdefine with
chek your result table.abnormally terminated ur pgm not
updated where i mention your last check point.
Rd parameter following types.
rd=restart
rd=rnc(restart no ckekpont)
rd=rc(restart with chekpoint)
*every abnormal execution system automatically restart
(using checkpoint with restart option)

Is This Answer Correct ?    2 Yes 0 No

Question { 9279 }

is it possible to rename 01 level?


Answer

no only 66 level

Is This Answer Correct ?    7 Yes 2 No

Question { 7054 }

in how many mode we can open a file ?


Answer

input,output,extend,i-omode

Is This Answer Correct ?    10 Yes 0 No

Question { Wipro, 79310 }

Q:what is the difference between the variable length and
fixed lenght.how it varies in the cobol.


Answer

hi,
vareable length record is the record contain different
format(length) but the first 4 bytes taking length of record.

the fixed length record must be declaring length otherwise
throw the error.so after fill the records md fields fillup
th e filler clause.

Is This Answer Correct ?    39 Yes 34 No

Question { MAHINDRA, 32235 }

How can we execute only one step in a job


Answer

hi ankur,

i am really oppose u r answer cond=only previous step
abnormally execution mens this step executed.otherwsie not
possible.
using iebedit utility is oneway.
another one is restart=stepname end of the step give null
stmts.

Is This Answer Correct ?    1 Yes 0 No

Question { Vertex, 18221 }

write the SQL statement to retrieve the 2nd Highest salary
ammount(File Name="EMPLOY",Field Name="SALARY")


Answer

hi,
select max(salary) from empfile where salary <(select max
(salary from empfile))

or

select salary from empfile a 2=(select count(salary) from
from empfile b where b.salary>=a.salary)

Is This Answer Correct ?    24 Yes 2 No

Question { ACS, 17062 }

can we read records in a file from botom to top. if
possible how can we read


Answer

hi Sreejith,
u r giving wrong answer previous is not available in
cobol.pls find.

Is This Answer Correct ?    10 Yes 1 No

Question { UST, 9476 }

If A>B
next sentence
end-if
display 1
display 2.
display 3.

If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)
____________________________________

if a>b
continue
end-if
display 1
display 2.
display 3.

If a>b, it Will display 1 2 3 (the next statement)
____________________________________

if a>b
continue
display 1
end-if
display 2
display 3.
display 4.

If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?


Answer

if a>b
continue
display 1
end-if
display 2
display 3.
display 4.
it will disply 1,2,3,4.

Is This Answer Correct ?    2 Yes 2 No

Question { IBM, 36627 }

How to read the last 100 records from a COBOL file. The file
contains N number of records.


Answer

Hi,
u declare two count variable.first count all the
records.then using compute statement count - 100.now move
the count no to second one.now again use read at end.now
give the condition grater than count-2 display rec.

Is This Answer Correct ?    4 Yes 8 No

Question { 6758 }

Can comments be specified at the very beginning of a
jobcard? Will the JCL execute?


Answer

no.job not run error & adend code 007 will come

Is This Answer Correct ?    6 Yes 2 No

Question { 7450 }

How to define the a field which accepts value till 99999.99
in db2


Answer

in db2 decimal(7,2) & application cobol pgm 9(5)v99.

Is This Answer Correct ?    33 Yes 1 No

Question { CS, 8373 }

How to retain the Duplicates in the one records?


Answer

Hi,

Using sort Utilities,
some fields=None,xsum
//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=TEST.XSUM.INPUT,DISP=SHR
//SORTOUT DD DSN=TEST.XSUM.OUTPUT,DISP=SHR
//SORTXSUM DD DSN=TEST.XSUM.OUTPUT.XSUM,DISP=SHR
//SYSIN DD *
SORT FIELDS=(2,10,CH,A)
SUM FIELDS=NONE,XSUM

Is This Answer Correct ?    15 Yes 4 No

 [1]   2   3    Next