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

Answer Posted / deepak dada, jaipur

not sure but

inspect string replacing string(4:1) by 'a'


might work

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1747


What is the function of a dd statement?

965


What are hierarchy levels in jcl?

1286


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4606


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

854


What is one line to pass PARM from JCL to COBOL?

4711


In job processing, what happens in conversion stage?

985


Explain about LMFREE�free data set from its association with data ID

1343


Explain how can the attributes of one sms dataset be copied to another dataset?

982


What is the format of comment statement?

953


what is the resolution for sb37 error

8457


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1151


How to run cobol program using jcl?

952


in ways data can be passed to a COBOL program from JCL?

921


Why block size is multiple of lrecl in jcl?

1167