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

Redefines clause cannot be used in a) working-storage section b) 77 c) 66 d) elementary

3 Answers   Accenture,


How many minimum number of line codes does PL/1 DB2 program requires?

0 Answers   IBM, TelePerformance,


WHAT ARE THE RETRIVAL ORDER OF FILES IN RPG&sql?

1 Answers  


what is the use of overlay keyword

0 Answers  


HAI I HAVE FINISHED MAINFRAME TRAINING.IM B.E 2006 PASSED OUT FRESHER.IF U HAVE ANY OPENINGS FOR MAINFRAME FRESHERES PLEASE CONTACT MY EMAIL ID MY ID IS sankari_hema2005@yahoo.com

3 Answers  






How to resolve SOC4 & SOC7 errors?

3 Answers  


What is the meaning of a (new, catalog, keep) disposition mean?

0 Answers  


Write about a ‘view’ in brief?

0 Answers  


List the type of locks and explain each of them.

0 Answers  


Can you define path?

0 Answers  


Can you define notcat 2?

0 Answers  


have you ever know what is the meaning of Packed Decimal  

0 Answers  


Categories