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
how would find total records in files using sequential?
suppose I have 1000 rows in a db2 table. I want to update first 100 records, how do I do it?
A word in the computer memory is identified by_________
What is the mainframe computer?
What is meant by a bolt dispute?
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
suppose oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset?
How are composite and multiple indexes different?
What is comp-1?
Describe the benefits of drda?
Explain foreign keys?
what is difference between file-aid tool and file-aid utility?
Can you explain referential integrity?
how do we describe static call and dynamic call?
Explore the syntax of the evaluate statement?