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



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

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

More IBM MainFrame AllOther Interview Questions

What is the need of running runstats in the test environment?

0 Answers  


What is z os in mainframe?

0 Answers  


by using xpeditor if we want to debug the subpgm, how can you code in x-ped for mai-pgm n sub-pgm ?

0 Answers  


How to find all duplicate records?

0 Answers  


What is database descriptor?

0 Answers  


How do you find whether any generations exist under a gdg base?

0 Answers  


hi provide info about any real time requirement in health care and banking services mainframe applications. pls send immediate reply to me.

0 Answers  


What is the function of the verb initialize?

0 Answers  


how is the future of tandem mainframe?

0 Answers  


How do you get parameter from JCL to PL1?

0 Answers   IBM,


what is use of linkage section?

0 Answers   IBM,


how to handle -911 (deadlock) error in a db2 program so that the program will never abend?

0 Answers   IBM,


Categories