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

How to declare host variables?

0 Answers  


we cant write data into file using cl program then what is sndf

0 Answers  


what are the common errors that occured while programming in AS/400?

0 Answers  


what do u write in the impact analysis document (i.e, for a change request)

4 Answers   Nest, Wipro,


How is data retrieved from multiple tables using a single sql statement?

0 Answers  






how is the future of tandem mainframe?

0 Answers  


How many types of evaluate statements are available?

0 Answers  


Why is free space left in ksds dataset?

0 Answers  


What is the worst thing that you’ve seen on a day?

0 Answers  


Is the order of the when clause important in an evaluate statement? Is the order of the when clause significant in an evaluate statement?

0 Answers  


what optimum values can we find for freespace, ci etc?

0 Answers   IBM,


Is it possible to move the alphanumeric variables to a numeric variable?

0 Answers  


Categories