Answer Posted / dimpy19
POS : return the position of one string str1 into str2- start from by default position 1
INDEX : returns the character position of one string, needle, in another, haystack, or returns 0 if the string needle is not found or is a null string.
By default the search starts at the first character of haystack (start has the value 1).
You can override this by specifying a different start point, which must be a positive whole number.
LASTPOS :returns the position of the last occurrence of one string, needle, in another, haystack
pos----- string
index---character
Lastpos-last occurence of one string into another
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is job control language?
List in order the hierarchical levels of jcl?
How is a type of file defined in the jcl that executes the cobol program?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How would you understand error(execution phase)?
In job processing, what happens in execution stage?
What are steplib and joblib?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
How can an in-stream dataset be terminated?
What is Cataloged Procedures?
What is the purpose of disp parameter?
In sms datasets, what is the function of the dd mgmtclas keyword?
For what purpose steplib and joblib are used ?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?