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 

Help with BPXWDYN module

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Tue Aug 15, 2006 1:32 am    Post subject: Help with BPXWDYN module Reply with quote

Kolusu,

I am not able to use the BPXWDYN module as you had used in

http://www.mvsforums.com/helpboards/viewtopic.php?t=4572&highlight=string+pointer

but if I call the module using just a string , then it works

Pls reply ASAP

SSD
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Tue Aug 15, 2006 1:54 am    Post subject: Reply with quote

What does "I am not able to" mean? Do you get compile errors? Runtime error messages? Error codes? Abends? Incorrect output? Security violations? Hangs? What research have you done to rule out causes of the problems you see? Without some basic information, no one is going to be able to help you "asap" or otherwise.
Back to top
View user's profile Send private message Visit poster's website
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Tue Aug 15, 2006 2:06 am    Post subject: Reply with quote

hi,
Following is the section of program that i have coded.
Code:

01  WS-COMMAND-CNT      PIC S9(04) COMP VALUE 1.
01  WS-BPXWDYN-PARMS.                           
    05  WS-BPXWDYN-LEN    PIC S9(4) COMP.       
    05  WS-BPXWDYN-CMD    PIC X(500).           
                                               
      STRING  'ALLOC'            DELIMITED BY SIZE   
              ' DA('             DELIMITED BY SIZE   
                WS-DSNAME        DELIMITED BY SPACES 
              ')'                DELIMITED BY SIZE   
              ' FI(OUTFVAR)'     DELIMITED BY SIZE   
              ' MSG(WTP)'        DELIMITED BY SIZE   
              ' NEW'             DELIMITED BY SIZE   
              ' CATALOG'         DELIMITED BY SIZE   
              ' DATACLAS(CTSDASD)'  DELIMITED BY SIZE
              ' STORCLAS('       DELIMITED BY SIZE   
                WS-STORCLASS     DELIMITED BY SPACES 
              ')'                DELIMITED BY SIZE   
              ' CYL'             DELIMITED BY SIZE   
              ' SPACE(1,5)'      DELIMITED BY SIZE   
              ' LRECL(32112)'    DELIMITED BY SIZE   
              ' UNIT(SYSDA)'     DELIMITED BY SIZE   
              ' RECFM(V,B)'      DELIMITED BY SIZE   
              ' DSORG(PS)'       DELIMITED BY SIZE
              ' RELEASE'        DELIMITED BY SIZE       
 INTO  WS-BPXWDYN-CMD                               
 POINTER WS-COMMAND-CNT END-STRING.                 
                                                   
 MOVE WS-COMMAND-CNT TO WS-BPXWDYN-LEN             
                                                   
 DISPLAY ' '                                       
 DISPLAY WS-BPXWDYN-PARMS                           
 DISPLAY ' '                                       
 DISPLAY '*** BPXWDYN COMMAND LEN = ' WS-COMMAND-CNT
                                                   
 CALL WS-BPXWDYN-PGMID USING WS-BPXWDYN-CMD         
                       RETURNING WS-BPXWDYN-RC     
 END-CALL.                                         

the above code works perfectly fine.

BUT,

In the call statement if I use WS-BPXWDYN-PARMS (group variable)instead of WS-BPXWDYN-CMD (character variable) then I am encountering KEY ERROR which is one type of error that BPXWDYN generates.

The key error value that I obtain in the WS-BPXWDYN-RC fiels is
-35 which means the 15th keyword has the error. But as I said before the ALLOC keywords are all fine.

Pls let me know if you need more information.

SSD
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Tue Aug 15, 2006 8:37 am    Post subject: Reply with quote

ssd,

Add this line before the STRING statement and your job should run fine with the WS-BPXWDYN-PARMS

Code:

INITIALIZE WS-BPXWDYN-PARMS


Also make sure that your SELECT and FD statement match your File attributes

Code:

FILE-CONTROL.                             
                                           
      SELECT OUT-FILE                     
      ASSIGN TO OUTFVAR                   
      ORGANIZATION IS SEQUENTIAL.         
                                           
DATA DIVISION.                             
                                           
FILE SECTION.                             
                                           
FD OUT-FILE                               
   RECORDING MODE IS V                     
   LABEL RECORDS ARE STANDARD             
   BLOCK CONTAINS 0 RECORDS               
   DATA RECORD IS OUT-REC.                 
                                           
01 OUT-REC                  PIC X(32112). 

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Wed Aug 16, 2006 12:55 am    Post subject: Reply with quote

Thanks Kolusu,

INITIALIZE WS-BPXWDYN-PARMS

is working perfectly fine.

Can you tell me the reason why BPXWDYN accepts
either a string or a group variable (containing a length and the string) ?

SSD
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Wed Aug 16, 2006 8:17 am    Post subject: Reply with quote

Quote:

Can you tell me the reason why BPXWDYN accepts
either a string or a group variable (containing a length and the string) ?


ssd,

Well BPXWDYN can be used as a function as well as sub-routine. It accepts both single-item variable-length parameter list or a string.

Check this link which explains in detail

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB661/6.1?DT=20050926202723

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Thu Aug 17, 2006 3:36 am    Post subject: Reply with quote

Hi,

Thanks for the helpful reply.

One more difficulty that I am experiencing is regarding the space allocation specification to the BPXWDYN .

The BPXWDYN module doesnot allow the use of AVGREC ..
can you suggest a solution for this problem ?

SSD
Back to top
View user's profile Send private message
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Wed Aug 30, 2006 1:51 am    Post subject: Reply with quote

Can any one tell me how to use AVGREC parameter with BPXWDYN allocation module ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Wed Aug 30, 2006 7:24 am    Post subject: Reply with quote

Quote:

Can any one tell me how to use AVGREC parameter with BPXWDYN allocation module ?


SSD,

BPXWDYN does NOT support AVGREC parameter. It ONLY supports allocation in Cylinders, Tracks and Blocks.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ssd
Beginner


Joined: 24 Mar 2006
Posts: 25
Topics: 10

PostPosted: Wed Aug 30, 2006 9:22 am    Post subject: Reply with quote

Thanks Kolusu.

Then I think the only way by which I can use the AVGREC parameter is by using the TSO ALLOCATE command

SSD
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 -> Application Programming 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