i have a requrement in A as viswa!@#$%&^**reddy i need to
move viswareddy in B without junk values pls say how to do
ths reply fast
Answer Posted / priyanka
declare an 88 level with valid values as 'a' to 'z' and '0'
to '9'.
value = viswa!@#$%&^**reddy
move 0 to Y
move length of value to ws-value-length
Perform varying X from 1 by 1 until X > ws-value-length
move value (X:1) to 88-level-variable
if valid-value
add +1 to Y
move value(X:1) to out-value(Y:1)
else
continue
end-if
end-perform
out-value will be your output.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Give some examples of command terminators?
What are declaratives and what are their uses in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How to remove 2 duplicate records and copy only one using job control language?
Discuss about changing dataset name in proc.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are 77 levels used for?
What rules are to be followed while using the corresponding options?
Describe the cobol database components?
) How do u handle errors in BMS macro?
What are the different rules to perform a Search?
What is link edit in cobol?