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
Name what parameter directs the output of the job log dataset?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
can any one plzzzzzz tell the jcl code for creating ps using idcams
How to submit jcl through a cobol program?
What is the purpose of dd * statement in jcl?
What is use of restart and how to use it?
what is use of dsn parameter in dd statement?
Explain the function of //jcllib statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
which parameter is use to declare the name of dataset in dd statement?
Explain the function of the steplib dd statement?
What are steplib and joblib?
How can the disposition of sysout datasets be set for an entire jobstream?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
what happens in conversion stage in job processing?