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

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.

2014


Explain about ISPF/TSO Commands

1597


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2217


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

9459


Explain the function of the dd dcb keyword?

949


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

844


Does jcl support automatic restart?

990


Explain how can an in-stream dataset be terminated?

972


What parameter of the job statement is used to limit the cpu time consumed by the job?

1033


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2203


What is the purpose of disp parameter?

862


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

906


what is “Cond= even” and “Cond=only”?

986


Which dd parameters are required?

915


What is the use of disp parameter?

861