i have a string of 80 chars i want to replace 4th char with "a"?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can program checkpoints be stored for use in a restart?

1181


Explain the purpose of the dd keylen parameter?

911


State the uses of syspring, sysin, sort fields, sum fields and dummy.

883


How can the disposition of sysout datasets be set for an entire jobstream?

1117


What do you understand by jcl?

841


How can values be passed from the job stream to an executable program?

1142


what is use of space parameter in dd statement?

1003


Why include statement is used in a jcl?

931


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

2041


can any one plzzzzzz tell the jcl code for creating ps using idcams

11172


Define concatenating?

903


how you will the direct the data to spool using sysout option?

2152


How can an in-stream dataset be terminated?

1095


when can a job time-out occur? How to overcome that?

1001


Explain in DD statement what is the use of DCB parameter?

930