IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to save profile changes?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Tue Aug 18, 2009 11:38 am
Reply with quote

I am using "CUT" option with some name inside ps file

like -> cut jobcard

this will assign jobcard name to those lines on which the cut option was used. and now when i use "paste jobcard", those lines will be pasted. but when i logoff from my id, this jobcard name get removed from profile and on next lonin i need to assign the block of lines again to jobcard using "cut jobcard" option, before using it for paste.

Is there a way to save it before logoff?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 18, 2009 11:47 am
Reply with quote

My first guess is that the contents are saved in a temporary file which gets deleted at logoff time.

Look at the cut macro, and see if it is possible to create your own version - DO NOT change the installed version - to save the cut data.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Aug 18, 2009 6:51 pm
Reply with quote

Create a member with your job card(s) then use:

COPY jobcard
or
COPY hlq.template(jobcard)

instead of using the clipboard
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Aug 18, 2009 7:35 pm
Reply with quote

Or write an edit macro to insert a JOB statement in the file you are editing. That way you don't have to have it stored anywhere except in one of your SYSPROC data sets.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 18, 2009 7:42 pm
Reply with quote

As suggested by Terry, and posted earlier by me .........
Terry, it doesn't have to be in any ISPF defined libraries.

If you do need a macro to insert things into a dataset when not using file tailoring, I find it is far easier to keep the inserts in a seperate library and insert the whole member in one hit. It keeps it a whole lot cleaner than generating the JCL in the REXX code, and means that not only can the same member be used anywhere else that I want, but if it needs to be changed it only needs to be changed once.

This is the macro that I use to insert a jobcard at the top of a JCL stream.
Code:

"ISREDIT MACRO"
"ISREDIT COPY 'My library(JOBCARD)' AFTER "0
"ISREDIT END"
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Aug 18, 2009 7:54 pm
Reply with quote

Never thought of doing it that way, expat. I've been using this really old version for a long time:
Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
/*                                                                   */
/*  MEMBER       -  USER.CLIST(JC)                                   */
/*  DESCRIPTION  -  INSERT A JOB STATEMENT AT THE BEGINNING OF THE   */
/*                  MEMBER BEING EDITED.                             */
/*  AUTHOR       -  MAINFRAME JOURNAL                                */
/*  CREATED      -  12/07/1989                                       */
/*  MODIFIED     -  10/20/2008 BY THEINZE                            */
/*                                                                   */
ISREDIT MACRO                                                         
SET USER = &&SYSUID                                                   
ISREDIT LINE_AFTER 00 = "+                                             
//&SYSUID.X JOB (XXXXXXXX-XXXX-XXXXX),'YOUR NAME HERE--XXXX'," /* INSERT
ISREDIT LINE_AFTER 01 = "+                                             
//             CLASS=4,                                      " /* JOB
ISREDIT LINE_AFTER 02 = "+                                           
//             COND=(0,NE),                                  " /* STMT
ISREDIT LINE_AFTER 03 = "+                                           
//             MSGCLASS=X,                                   " /* AND
ISREDIT LINE_AFTER 04 = "+                                           
//             MSGLEVEL=(1,1),                               " /* PARMS
ISREDIT LINE_AFTER 05 = "+                                             
//             NOTIFY=&&USER,                                " /*
ISREDIT LINE_AFTER 06 = "+                                       
//             REGION=0M                                     " /*
ISREDIT LINE_AFTER 07 = "+                                       
//*                                                          "
SET &ZEDSMSG = JOB STMT INSERTED                    /* FILL    SHORT MSG
SET &ZEDLMSG = A JOB STATEMENT HAS BEEN INSERTED AT THE BEGINNING +
               OF THIS MEMBER                       /* FILL    LONG  MSG
ISPEXEC SETMSG MSG(ISRZ000)                         /* DISPLAY SHORT MSG
Of course I have to modify it slightly at each site I'm at.
Back to top
View user's profile Send private message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Wed Aug 19, 2009 2:35 pm
Reply with quote

Thanks guys
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 3
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts ISPF Edit Macro with profile commands... TSO/ISPF 14
Search our Forums:

Back to Top