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
Answer Posted / ram g
compiler wont support 05 level direct coding ..assuming
that its a 01 level .. ans is 40.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the difference between next sentence and continue in cobol programing language?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
) how do u code after getting data?
How do you reference the following file formats from cobol programs?
Mention the guidelines to write a structured cobol program?
How can you get the ksds file records into your cobol program?
What is the compute verb? How is it used?
How many sections are there in data division in COBOL?
Which Search verb is equivalent to PERFORM…VARYING?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What do you understand by psb and acb?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
how to convert the recors form vsam file to db2 table tru file aid