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
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.
Explain about ISPF/TSO Commands
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.
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?
Explain the function of the dd dcb keyword?
Explain how can values be passed from the job stream to an executable program?
Does jcl support automatic restart?
Explain how can an in-stream dataset be terminated?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
What is the purpose of disp parameter?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
what is “Cond= even” and “Cond=only”?
Which dd parameters are required?
What is the use of disp parameter?