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
Explain path?
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend. What is wrong with it?
how are start and xctl different?
Tell about how do you eliminate the duplicates?
What is the worst thing that you’ve seen on a day?
How do you get parameter from JCL to PL1?
Can you define foreign keys?
accept ws-date from date will return the current date?
Explore the syntax of the evaluate statement?
Define clustered index?
What do you mean by an alias?
Please send me the real time scenarios in Mainframe Project... i.e., it may be in banking or insurance sector or any other no problem..... please send your mails to krishnaprasadbvs@gmail.com
What are some uses of the evaluate statement? Explore the syntax of the evaluate statement?
can any one exaplin about Decision Tables in test region with good example
If an array is multi-dimensional dynamic array how do you deal with it & provide me some examples?