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 there any utility for restarting a particular step in jcl reply soon ?
How do you find which GDG is using which dataset?
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?
what is XSUM in some fields= none, xsum ??
what is the difference between perform varying and perform
what is the job entry system used in your project?
with out sorting how to copy records from one file to another file using jcl.Mean I have one input file in which the record are like 1,6,5,4,2,3(for example) and i want to copy to output file from top to bottom(without sorting) like 3,2,4,5,6,1.so I want the JCL for this.cna any one can answers?
how to see the latest generation in gdg?
How can an in-stream dataset be terminated?
how to create a member or sequential dataset through tso command??
how you can direct the data to spool using SYSOUT option?