i have a string of 80 chars i want to replace 4th char with "a"?
Answer Posted / mchava
first move string 4th position to one variable
ex: string(4:1)=ws-string
then use inspect and replace words
ex: INSPECT STRING REPLACING WS-STRING BY 'a'
BEFORE SPACE/'.'/(end of the sting).
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain the function of dd disp parameter?
is there any way to execute more than one proc in the same exec statement at the same time..?
How to run cobol program using jcl?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
How would you understand error(execution phase)?
How to alter the parameters for the existing gdg?
How to pass the parameter in parm using linkage section ? (syntax)?
What is catelog procedure and how many catelog procedure to use in one job?
How jcl is used for testing batch programs?
List the different components of jcl statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
how to run batch program without jcl?
Explain the function of //cntl statement?
List the various advantages of using jcl language?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file