Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

syntax needed to allocate member dynamically.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Fri Feb 10, 2006 7:40 pm    Post subject: syntax needed to allocate member dynamically.
Reply with quote

Hai all,

Is it possible to allocate member dynamically?

with my case, my member name = CMFGHA

I need to write like this:

XXXXX = CMFGHA
"ALLOC DA(SYSDEV.IDVXM.GRP.COPY198("XXXXX")) F(UPDATEDD) OLD"

but its not working for me.

anybody can help in thE above syntax to make out

"ALLOC DA(SYSDEV.IDVXM.GRP.COPY198(CMFGHA)) F(UPDATEDD) OLD"

thanks
Kalyan
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Feb 10, 2006 7:49 pm    Post subject: Re: syntax needed to allocate member dynamically.
Reply with quote

There is nothing wrong with your ALLOC command sytax. Allocating a member of a PDS does not create a member. You need to open it and write something into it.

Follow your ALLOC with something like this:
Code:

XXXXX = CMFGHA                                                     
"ALLOC DA(SYSDEV.IDVXM.GRP.COPY198("XXXXX")) F(UPDATEDD) OLD"     
Queue " "                                                         
Queue ""                                                           
"EXECIO * DISKW UPDATEDD (FINIS"                                                     
Back to top
View user's profile Send private message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Fri Feb 10, 2006 7:59 pm    Post subject:
Reply with quote

hai superk,

thanks for immediate reply.

with that i am getting error like this.


Code:
INVALID DATA SET NAME, SYSDEV.IDVXM.GRP.COPY198(C9990WR1                       
MISSING DATA SET NAME OR *+                                                   
INVALID KEYWORD, )                                                             
MISSING NAME OF DATA SET TO BE ALLOCATED                                       
The input or output file UPDATEDD is not allocated. It cannot be opened for I/O
                                                                             
EXECIO error while trying to GET or PUT a record.                             
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Feb 10, 2006 8:40 pm    Post subject: Re: syntax needed to allocate member dynamically.
Reply with quote

Code:

INVALID DATA SET NAME

Seems to say it all. Are you sure that shouldn't be a fully qualified dataset name, such as:
Code:

"ALLOC DA('SYSDEV.IDVXM.GRP.COPY198("XXXXX")') F(UPDATEDD) OLD"
Back to top
View user's profile Send private message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Mon Feb 13, 2006 9:04 am    Post subject:
Reply with quote

I am still getting same error.

My exact code will rewrite 1st stament in the member.
Can anybody help in solving error.
if i am giving C1355M09 instead of "XXXXX" this code working fine.

but as per requirements, i need to give variable instead of name.

Code:
     XXXXX = C1355M09                                     
"ALLOC DA('SYSDEV.IDVXM.GRP.COPY198("XXXXX")') F(UPDATEDD) OLD"
"EXECIO 1 DISKRU UPDATEDD 1 (LIFO"                             
PULL LINE                                                     
PUSH '      *THIS LINE IS A COMMENT'                           
"EXECIO 1 DISKW UPDATEDD (FINIS"                               
"FREE F(UPDATEDD)"                                             

thanks alot,
-Kalyan
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Feb 13, 2006 10:41 am    Post subject:
Reply with quote

Make sure that your variable contains no leading or embedded blanks. You can use STRIP and SPACE for that purpose.

O.
Back to top
View user's profile Send private message
kalyanatiit

New User


Joined: 04 Sep 2005
Posts: 8

PostPosted: Mon Feb 13, 2006 4:22 pm    Post subject:
Reply with quote

Oh...Yeah..

thank u very much ofer71.

problem got solved.

thanks alot,
Kalyan.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us