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
What is the function of the steplib dd statement?
Can I send output of job to my remote device careerride123?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
What is Cataloged Procedures?
what are the types of abends that occur on job failure? And explain the possible causes of these
Explain how can the disposition of sysout datasets be set for an entire jobstream?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Explain how can a jobs execution priority be modified?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
what is the purpose of coding notify parameter in job statement?
Is there any command to check wether the ps file is in sorted order?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
Differentiate between addressing mode and run mode.
when does a dataset go uncataloged?