I've one string with spaces ( I N D I A ). My question is I
want remove the spaces & combine in to single string without
space (INDIA).How we can write the cobol program & wich
options we need to use. Please let me know.
Answer Posted / sup
small modification to ans 9th,
If ws-india(ws-i:1) = spaces
continue
Else
move ws-india(ws-i:1)to ws-india-f(i:1)
i=i+1
End-if
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
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.
Write a cobol program making use of the redefine clause.
How do you get the data to code the BMS macro?
For rewrite, why is it mandatory that file needs to be opened?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is cobol?
what are decleratives in cobol?
how to move the records from file to array table. give with code example
What is the difference between Global and External Variables?
What are the cobol coding sheets?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is Pic 9v99 Indicates in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?