Page 1 of 2

Force to place any charaters and then save.

PostPosted: Mon Apr 08, 2013 9:42 pm
by Mehdi shri
Dear friends
How I can specify a frce to placing specific charaters or word in a line so that member can be saved?
In other word if there is no specific charaters (or word or sentense) for example in line 1 of a JCL member, we must can not to save and close it. and this sentense must be at the first line so we can save and close it.

Re: Frce to place any charaters and then save.

PostPosted: Mon Apr 08, 2013 9:46 pm
by prino
What the flucking 'ell is "frce"?????

Re: Frce to place any charaters and then save.

PostPosted: Mon Apr 08, 2013 9:59 pm
by enrico-sorichetti
How I can specify a frce to placing specific charaters or word in a line so that member can be saved?
In other word if there is no specific charaters (or word or sentense) for example in line 1 of a JCL member, we must can not to save and close it. and this sentense must be at the first line so we can save and close it.

clear as mud :geek:

Re: Frce to place any charaters and then save.

PostPosted: Mon Apr 08, 2013 11:40 pm
by dick scherrer
Hello,

If you are hoping for some help, you are going to have to more clearly explain why you are stuck . . .

As others have asked - just What is "f r c e"? Typo? Home-grown term?

Suggest in addition to an explanation, showing one or more examples will help.

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 12:14 am
by Pedro
we must can not to save and close it.


To perform validity checking before allowing the user to save a file, I suggest that you start your editor session with an initial macro. Within the macro, use the DEFINE statement:
Address ISREDIT
'DEFINE SAVE ALIAS myexec'
'DEFINE END ALIAS myexec2'

When the user tries to save the file, your rexx program gets control. You can use editor macro statements to retrieve and verify the contents. If it passes your verification:
Address ISREDIT
'BUILTIN SAVE'

or END.

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 10:11 am
by Mehdi shri
Dear friends
How I can specify a force to placing specific charaters or word in a line so that member can be saved?
So users must enforced to put the reauired string or sentense in the first line ( or secound file) then he can exit the member.

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 12:05 pm
by BillyBoyo
If you follow Pedro's advice, your users, when attempting to END or SAVE, enter an edit macro belonging to you. You can then do whatever you need, by coding for it in that edit macro.

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 12:16 pm
by enrico-sorichetti
How I can specify a force to placing specific charaters or word in a line so that member can be saved?
So users must enforced to put the reauired string or sentense in the first line ( or secound file) then he can exit the member.

pretty inconsiderate requirement, will cause lots of grief among the users, with very little benefit.

what are the expectations, apart getting complaints ???

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 1:14 pm
by prino
Now I understand "frce": Farce!

Re: Frce to place any charaters and then save.

PostPosted: Tue Apr 09, 2013 1:48 pm
by enrico-sorichetti
Now I understand "frce": Farce!
:lol: