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 |
can we copy a file from fixed block to variable block and vice versa ....asap
What are the valid DSORG values ?
if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario
What is the significance of addrspc parameter in exec statement?
how many max steps can we use in a job? pls answer to my question
Explain the function of dd name parameter with a 2 part structure; audit.report?
How can unused space allocation be returned to the system when a dataset is closed?
i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?
what is “Cond= even” and “Cond=only”?
What are the parameter we cannot use in procedure?
Explain about LMOPEN -
What statement marks the end of an in-stream or catalogued procedure?