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 |
Is condition checking possible in jcl? If yes, how?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
describe the exec statement,its meaning ,syntax and keywords?
Is there any command to check wether the ps file is in sorted order?
a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?
Explain the function of //cntl statement?
In jcl i have 255 steps. In 255 step i declared proc. In proc i have 20 steps this job is executable or not? why?
if we are specifing joblib as well as steplib in job then at the time of execution how the process will complete
What are the parameter in the job card wihtout which job won't run........
What is GDG and what is the maximum limit of versions that can be created?
if time parameter is not coded on the job card and job step then what is the default time assigned to the entire job and for each step in the job by the systyem ?
How to check empty file in jcl?