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 |
What is the need of running runstats in the test environment?
What is z os in mainframe?
by using xpeditor if we want to debug the subpgm, how can you code in x-ped for mai-pgm n sub-pgm ?
How to find all duplicate records?
What is database descriptor?
How do you find whether any generations exist under a gdg base?
hi provide info about any real time requirement in health care and banking services mainframe applications. pls send immediate reply to me.
What is the function of the verb initialize?
how is the future of tandem mainframe?
How do you get parameter from JCL to PL1?
what is use of linkage section?
how to handle -911 (deadlock) error in a db2 program so that the program will never abend?