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 to declare host variables?
we cant write data into file using cl program then what is sndf
what are the common errors that occured while programming in AS/400?
what do u write in the impact analysis document (i.e, for a change request)
How is data retrieved from multiple tables using a single sql statement?
how is the future of tandem mainframe?
How many types of evaluate statements are available?
Why is free space left in ksds dataset?
What is the worst thing that you’ve seen on a day?
Is the order of the when clause important in an evaluate statement? Is the order of the when clause significant in an evaluate statement?
what optimum values can we find for freespace, ci etc?
Is it possible to move the alphanumeric variables to a numeric variable?