Force to place any charaters and then save.



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Force to place any charaters and then save.

Postby Mehdi shri » Mon Apr 08, 2013 9:42 pm

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.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Frce to place any charaters and then save.

Postby prino » Mon Apr 08, 2013 9:46 pm

What the flucking 'ell is "frce"?????
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Frce to place any charaters and then save.

Postby enrico-sorichetti » Mon Apr 08, 2013 9:59 pm

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:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Frce to place any charaters and then save.

Postby dick scherrer » Mon Apr 08, 2013 11:40 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Frce to place any charaters and then save.

Postby Pedro » Tue Apr 09, 2013 12:14 am

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.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Frce to place any charaters and then save.

Postby Mehdi shri » Tue Apr 09, 2013 10:11 am

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.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Frce to place any charaters and then save.

Postby BillyBoyo » Tue Apr 09, 2013 12:05 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Frce to place any charaters and then save.

Postby enrico-sorichetti » Tue Apr 09, 2013 12:16 pm

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 ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Frce to place any charaters and then save.

Postby prino » Tue Apr 09, 2013 1:14 pm

Now I understand "frce": Farce!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Frce to place any charaters and then save.

Postby enrico-sorichetti » Tue Apr 09, 2013 1:48 pm

Now I understand "frce": Farce!
:lol:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post