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 do you pass some input from JCL to PL1?

2 Answers   IBM,


WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"

0 Answers   IBM,


What is next sentence and continue unique?

0 Answers  


What is defragmentation and what is its advantage?

0 Answers  


what is the right time for using in-line perform?

0 Answers   IBM,






what does the keyword   SFLRCDNBR?

1 Answers  


1) What is ONCODE (Return code) in PL/1? 2) How to handle the ONCODE in PL/1? Please give me some examples?

1 Answers   IBM,


What is the mainframe computer?

0 Answers  


HOW to change the coloumns in XREF?

0 Answers  


I would like to know some real time questions.. please any one help me.. If the changes made by you .. lead to system inconsistency how others will know its cause???

0 Answers  


What is the difference between version control and debugging tools?

0 Answers  


If a=1 or 2 or 3 NEXT SENTENCE ELSE move a to b. a) if A not = 1 or 2 or 3 move A to B b) if not A = 1 and 2 and 3 move A to B c) if A Not = 1 and 2 and 3 move A to B d) if A NOT = 1 or NOT=2 or NOT =3 move A to B

2 Answers   Accenture,


Categories