MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

While allocating a PDS in REXX how to make it NUM OFF

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kpmdreamz
Beginner


Joined: 06 Apr 2007
Posts: 8
Topics: 2

PostPosted: Tue May 01, 2007 7:16 am    Post subject: While allocating a PDS in REXX how to make it NUM OFF Reply with quote

I am creating the PDS in REXX using ALLOCATE
After i check the created pds and try to create a member inside it - i find that in the PROFILE - NUM is ON.
Everytime i have to do a NUM OFF.

How do i make my REXX create the PDS with NUM OFF

I also need it to have CAPS ON
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 01, 2007 7:20 am    Post subject: Reply with quote

Use an initial macro to set your desired settings: something like:-

ISPEXEC 'edit dataset(bvghj) MACRO(setup)'
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue May 01, 2007 7:51 am    Post subject: Reply with quote

NUM OFF is an ISPF setting and is not controlled by allocation. ISPF uses different profiles based on the low-level dsname qualifier (unless you override this action).

For example:
xxx.xxx.CNTL
xxx.xxx.SOURCE

Suppose you name your new PDS something like KPM.REXX.NONUM so that when you edit it the first time and set NUM OFF, ISPF will remember that setting for your edit profile named "NONUM". Be sure not to copy in members with valid sequence numbers or the profile will change to NUM ON.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
kpmdreamz
Beginner


Joined: 06 Apr 2007
Posts: 8
Topics: 2

PostPosted: Tue May 01, 2007 9:16 am    Post subject: Reply with quote

Bill Dennis wrote:
NUM OFF is an ISPF setting and is not controlled by allocation.


-- Bill - does that mean i will not be able to make NUM OFF for my PDS
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 01, 2007 9:27 am    Post subject: Reply with quote

Not at all - as Bill said.

But, although you can get it to default to NUM OFF following the method Bill described, subsequently the setting can be changed by the data within the member - if it has vaild sequence numbers then ISPF will change the profile to NUM ON. If you then go to a member without sequence numbers ISPF will turn NUM OFF. It is a data driven thing - just like the CAPS state
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kpmdreamz
Beginner


Joined: 06 Apr 2007
Posts: 8
Topics: 2

PostPosted: Tue May 01, 2007 9:53 am    Post subject: Reply with quote

Hi Nic,
thanks for the info.
As of now - i am using your method to have NUM OFF and CAPS ON when the PDS is intially created.
I am doing as below:-
"PROFILE NOPREFIX"
"ALLOC DATASET("DSNNAME") NEW DIR(10) DSORG(PO)",
"SPACE(1 1) CYL RECFM(F B) LRECL(80)",
"BLKSIZE(800)"
ISPEXEC 'edit dataset('DSNNAME'(ONE)) MACRO(INITMAC)'

and my macro is as follows:-
INITMAC---
Address ISREDIT
"MACRO"
"NUM OFF"
"CAPS ON"
"END"
****************
Nic - it is working fine and the new PDS created has NUM OFF and CAPS ON.
Do you see any problem with this approach.
it sure is a long process, but as per my requirement the PDS's must be intially NUM OFF and i can't think of any other way
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue May 01, 2007 8:49 pm    Post subject: Reply with quote

or "EDIT DATASET('FRED.WILMA.BARNEY(BAMBAM)') MACRO(UNNUM)"

... uses a trick that macros are just a command, but due to some design limitations, you are limited to just the macro name; one word.

I suspect that

var='OFF'
"EDIT DATASET('RALPH.TRIXIE.ED(ALICE)') MACRO(NUM) PARM(VAR)"

might work too but I haven't tried it.
Back to top
View user's profile Send private message Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 02, 2007 3:35 am    Post subject: Reply with quote

It's only a long approach coding it the first time - now it does it at the speed of light - or rather the mainframe. The advantage of using a mcro is that you can do multiple commands as you have - you coud even add REC ON I guess so that UNDO is available. The disadvantage of using a macro is that it is one more object to maintain.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kpmdreamz
Beginner


Joined: 06 Apr 2007
Posts: 8
Topics: 2

PostPosted: Wed May 02, 2007 7:43 am    Post subject: Reply with quote

Hi semigeezer,
both the suggestions work - but they throw open the PDS member which i don't want-
so will have to go with the MACRO.
Back to top
View user's profile Send private message
kpmdreamz
Beginner


Joined: 06 Apr 2007
Posts: 8
Topics: 2

PostPosted: Wed May 02, 2007 7:45 am    Post subject: Reply with quote

Nic - Thanks for the input.
I have added REC ON too. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group