i have a string of 80 chars i want to replace 4th char with "a"?
Answers were Sorted based on User's Feedback
Answer / krishna
Move the sting in to a variable Eg to WS-String
then
Move 'a' to ws-string(4:1)
hope this will work
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / 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 |
Answer / deepak dada, jaipur
not sure but
inspect string replacing string(4:1) by 'a'
might work
| Is This Answer Correct ? | 0 Yes | 3 No |
Suppose I have five jobs to do. But I want to hold one?
What statement marks the end of an in-stream or catalogued procedure?
There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and not using any Restart and IF/THEN/ELSE parameter?
If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?
What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?
what is a cataloged procedure ?
How do you create a temporary dataset?
How to change default PROCLIB?
How to override loadlib?
What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ?
What is the function of the steplib dd statement?
what is the cond=even only