What are the different types of string function in PL/1?

Answer Posted / sravan

1.String(item_a||item_b);/*String -> concatenates to
elements*/
2. SUBSTR(item_a,3,5); /* Substring -> returns first item
characters starting from second items count to last items
count, here if item_a = 'algebra' returns substr
contains 'gebra'*/
3.Translate(string,replacement_chars,chars to be replaced)
/*WRK_RQSTDEL_DATE = TRANSLATE
('GH/EF/CD',RQST_DELDATE,'ABCDEFGH'); */
4. verify (x,y); /*DCL MAINSTR CHAR(6) INIT ('ANUK ');
DCL SUBSTRG CHAR(2) INIT ('NA');
RTN = VERIFY(MAINSTR, SUBSTRG); */

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can we describe the results of opening for input empty vsam files in a cobol program?

540


What is inspect?

552


State the maximum number of tables that can be joined?

566


What is meant by deadlock in db2?

636


what is the meaning of a (new, catlg, keep) disposition mean?

572






Can you define notcat 2?

605


Write the difference between hidam and hdam databases?

561


suppose program A is calling program B, at a time A will send 100 records but it has to send 500 records. how it will possible?

1581


State all the file open modes?

564


What is the difference between hidam and hdam databases?

538


What are some uses of the evaluate statement?

504


Can I redefine an x(200) field with a field of x(100) ?

756


Explain the meaning of spufi?

577


What is the mainframe testing?

523


suppose if you added a coloumn to db2 table, How would it be the Impact analysis?

1509