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
Explain how can values be passed from the job stream to an executable program?
what is SOC4 error?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
which utility is used to run a cobol-db2 program?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Explain the function of job statement in jcl?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
List in order the hierarchical levels of jcl?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What is one line to pass PARM from JCL to COBOL?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
what is DSN parameter and DISP parameter is used for?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is the format of comment statement?