Page 1 of 1

How to add one more line.

PostPosted: Tue May 06, 2014 2:55 pm
by samurai
Hello,

Can someone help me to write one more line below :

/* F55 R15894 03/27/2011 T SENGER CRI INFRASTRUCTURE CHANGES */
/* REMOVED EDADA AND ZBJIA */
/* F61 R15894 03/27/2011 T SENGER CRI INFRASTRUCTURE CHANGES */
/* ADDED OPTION 'U3' */
/* F65 R15894 03/27/2011 T SENGER CRI INFRASTRUCTURE CHANGES */
/* EPLI */
/*_______________________________________________________________*/
/*********************************************************************/
M3EBA:
PROC(IO_PCB_PTR,ALT_IO_PCB_PTR,PCB_OT100_PTR) OPTIONS(MAIN) REORDER;


i just want to add one more line as comment:

/* F66 R15894 03/27/2011 T SENGER CRI INFRASTRUCTURE CHANGES */

Re: How to add one more line.

PostPosted: Tue May 06, 2014 5:23 pm
by prino
Why in the world would you repeat a line with apparently completely bogus dates and a name that is not yours?

Re: How to add one more line.

PostPosted: Tue May 06, 2014 6:15 pm
by samurai
Hello Prino,

i think you are not clear with what i have said.

I have tried to find the word using index and wrote in output using I= I + 1.

and it went successfull.

Thanks for looking into it !!

Re: How to add one more line.

PostPosted: Tue May 06, 2014 6:35 pm
by NicC
I have tried to find the word using index and wrote in output using I= I + 1.

This may mean something to you but it does not mean anything to anyone else! What 'word'? What index (the BIF? or an index file?)? what does I = I + 1 do (apart from increment I)? What output?

And what was wrong with just editing the dataset, repeating the line and changing F65 to F66? (Actually it looks aas though the new line should be after the line:
/* EPLI */

Re: How to add one more line.

PostPosted: Tue May 06, 2014 7:18 pm
by samurai
i just want to add a line to the input so what i have done was :

1) i found the word using POS
2) incremented to + 1 where i need to write.
3) my output stem was OUT. so wrote into it as

OUT.i = substr(...) || substr(..)||date(ordered)|| ....

This way it went succesfully.. am i clear now.. Sorry if confused ;)

Re: How to add one more line.

PostPosted: Wed May 07, 2014 3:52 am
by Pedro
1) i found the word using POS

I can curious on what you searched for with the POS() function. I think it will be a different value the next time you invoke the exec or different if you go to another member and invoke the exec.

Your data lines vaguely look like change history lines that would appear in the prolog section of some file. Rather than using the POS() function, I think you should look for a delimiter of the change flag area and then work your way back up one line at a time.