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 change the coloumns in XREF?

0 Answers  


A word in the computer memory is identified by_________

0 Answers   IBM,


where will u see joblog ?

2 Answers   Syntel,


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

0 Answers   IBM,


what is use of linkage section?

0 Answers   IBM,


what is the meaning, the advantages and which are the types of evaluate statement?

0 Answers   IBM,


In a test environment, is there a need to run a runstats?

0 Answers  


what are the commands that frequently used in cl?

1 Answers  


how can we describe comp sync?

0 Answers   IBM,


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

0 Answers  


hi.... anybody send real time project related questions & answers whatever will ask in interview plz.....help me? advanced thanks....

0 Answers  


Express the distinction between jes2 and jes3?

0 Answers  


Categories