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 methodology can be adapted to transfer data to a program that is coded using the exec statement?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what is a jcl?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
In job processing, what happens in conversion stage?
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 to do automated restart when a job abends?
What is the purpose of dd dummy statement?
what is JCL?
in ways data can be passed to a COBOL program from JCL?
How can the attributes of one sms dataset be copied to another dataset?
Explain about LMFREE�free data set from its association with data ID
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Does jcl support automatic restart?