I encountered an error when I move spaces to a numeric
field?What should I do to move spaces on that field?help
please.
Answer Posted / ramesh
first numeric field rediffens alpha numeric field
then you check numeric and move spaces to redifened name
ex:
01 num pic 9(09).
01 num1 rediffens num.
02 num2 pic x(09).
if num is numeric
move spaces to num2
end-if.
Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
Can we redefine the field of x(200) to less than 200?
explain sorting techniques in cobol program?
) what is the difference between AID and HANDLE AID?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Explain how to differentiate call by context by comparing it to other calls?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Are you comfortable in cobol or jcl?
Explain what you understand by passing by value.
how do you reference the esds vsam file formats from cobol programs
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.