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
can we describe the results of opening for input empty vsam files in a cobol program?
What is inspect?
State the maximum number of tables that can be joined?
What is meant by deadlock in db2?
what is the meaning of a (new, catlg, keep) disposition mean?
Can you define notcat 2?
Write the difference between hidam and hdam databases?
suppose program A is calling program B, at a time A will send 100 records but it has to send 500 records. how it will possible?
State all the file open modes?
What is the difference between hidam and hdam databases?
What are some uses of the evaluate statement?
Can I redefine an x(200) field with a field of x(100) ?
Explain the meaning of spufi?
What is the mainframe testing?
suppose if you added a coloumn to db2 table, How would it be the Impact analysis?