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
how to do automated restart when a job abends?
What is the significance of addrspc parameter in exec statement?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
How to pass the parameter in parm using linkage section ? (syntax)?
Explain the function of //jcllib statement?
What does a disposition of (MOD,DELETE,DELETE) mean ?
How do you overcome this limitation ?
What dd statement is used to supply the name of a dataset?
how you can direct the data to spool using SYSOUT option?
How do you create a temporary dataset?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
what is a jcl?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Must tape dataset definitions include vol=ser specifications?