What are the different types of string function in PL/1?
Answer Posted / 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 View All Answers
what about F1 & F2 keys in xpeditor? And their functionalities?
what optimum values can we find for freespace, ci etc?
Expalin about Ibm frameworkinh working & is it platform independant & open source?
What is distributed relational database architecture? And components?
Can we move alphanumeric incentive to the numeric field?
When the job statement is used?
How do you eliminate the duplicates?
How do you get parameter from JCL to PL1?
Write in brief about clusters?
Can you explain function of iebgener?
What is the function of dbctl?
What is database descriptor?
Can you explain referential integrity?
Explain path?
What is RRange and ARange?