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 do you eliminate the duplicates?
Explain host variables?
If a gdg contains 20 versions .. how to copy those versions ps?
How many minimum number of line codes does PL/1 DB2 program requires?
0 Answers IBM, TelePerformance,
How do you pass some input from JCL to PL1?
How to send a sms to a mobile through mainframe vm’s?
How to define a directory?
difference between wrkobj & dspobjd?
What is comp-1?
If a=1 or 2 or 3 NEXT SENTENCE ELSE move a to b. a) if A not = 1 or 2 or 3 move A to B b) if not A = 1 and 2 and 3 move A to B c) if A Not = 1 and 2 and 3 move A to B d) if A NOT = 1 or NOT=2 or NOT =3 move A to B
how will you find a particular line in debugging if its a infinite loop
how to handle duplicate records in rpg program?