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
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the function of the dd avgrec keyword in sms datasets?
what operation is performed by job statement?
what is the use of JCL?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
how do you access an uncataloged dataset in a jcl?
define cond parameter in jcl?
What is notcat 2 - gs?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain the function of dd name parameter with a 2 part structure; audit.report?
What do you understand by the term job time – out and how can you overcome that?
how to compare two datasets without using superce because output is limited to 133 bytes
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
What do you understand by the term notcat 2 – gs?