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
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
When output dataset space is required, what quantity categories are used?
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
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What do you understand by jcl?
how do you code a null statement?
What are hierarchy levels in jcl?
What is the use of disp parameter?
Explain the function of //cntl statement?
which parameter is used to check the syntax of a jcl without executing it?
What is the function of the dd dcb keyword?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
i want to store 20 digits . how will u do it in cobol ?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.