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 |
I have one GDG. Everyday One new version is being created.Now I want to split this created version in different files each having 1000 records. Here Problem is I don't know How many records will be there in new version of GDG? that's why I don't know How many Out files we need to use . Interesting??????????????
How to identify where file is empty or not? How many ways are there to identifying?
How can you trap abends in the JCL?
how to put a dependency on job in jcl using opc scheduler?
what is alternate index?
How to get the last but one duplicate record of the file using Sort?
How to concatenate different LRECL of files?
what will be the error code if duplicate key of VSAM file is found?
Explain how can return codes be tested before execution of a job step?
Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?
How many extents are possible for a sequential file ? For a VSAM file ?
What is the function of the dd dcb keyword?