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


Please Help Members By Posting Answers For Below Questions

what JCL Procedures?

689


what is use of dcb parameter in dd statement?

762


which parameter is use to declare the name of dataset in dd statement?

720


What is the purpose of dd * statement in jcl?

789


Explain dfsort utility?

657






List the various advantages of using jcl language?

838


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

608


what is the difference between JES3 and JES2?

665


What parameter of the job statement is used to limit the cpu time consumed by the job?

827


What is catelog procedure and how many catelog procedure to use in one job?

7424


Explain the function of //cntl statement?

642


How do you access an uncatalogued dataset in a jcl?

716


What is the difference between run mode and addressing mode?

625


Explain how can return codes be tested before execution of a job step?

815


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

698