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 |
How do you eliminate the duplicates?
Explain delete-connected tables?
What is the meaning of a (new, catalog, keep) disposition mean?
Explain referential integrity?
How joinkeys helps in sort?
how to get the last record in vsam file in cluster? And how can u get the ksds file records into ur cobol program?
What is basic difference between directory and pds in ibm mainframe?
What is the distinction amongst include and copy?
Why we use "OCCUR" with multiple occurence DS(Data Structure)?
Have you caused any huge mistakes for the bank?
Define where and its usage?
what is the other verb for release and write ?