In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
Answer / mahesh satya
variable pic 9(08).
perform varying I from 1 by 1 until I < 8 or found
IF VARIABLE(I:1) not = 0 then
compute actual = 8 - I
move VARIABLE(I: actual) to NEW_VARIABLE
set found to true
end-if
end-perform
| Is This Answer Correct ? | 0 Yes | 0 No |
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
What are the different data types in cobol?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
) what is the difference between AID and HANDLE AID?
what will happen if i give program name and member name as different? program runs successful or w'll abend?
What are options have been removed in COBOL 11?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
What is a scope terminator give example?
What is different between variable length and fixed length?
In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?
hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...