View previous topic :: View next topic
|
Author |
Message |
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Can any one please send me the sample assembler program to dynamically allocate the file. I need to allocate a PS file using assembler program dynamically. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Use the search function in this forum. I recently posted an Assembler program that dynamically allocates a sequential file. |
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
I am having the below in my program. I am getting SOC1 Abend. I am new to assembler. Can you please help me out.
Name1 - DDNAMe
NAME2 - FILENAME
I just want to catlog the PS FILE.
L NAM1,0(PARAM)
L NAM2,4(PARAM)
MVC ADR+4(8),0(NAME1)
MVC ADR+12(44),0(NAME2)
LINK EP=BPXWDYN
...............
...............
FILEN DCB DSORG=PS,LRECL=340,BLKSIZE=0,RECFM=FB,DDNAME=NAME1,
MACRF=GM |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Read this document ftp.software.ibm.com/s390/zos/tools/bpxwdyn/bpxwdyn.html and pay especial attention to the Calling Conventions section. If you don't use the right calling data for BPXWDYN, you will get back bad return codes or even abends.
And surely you don't mean "catalog" the PS file -- you mean access, don't you? The code you posted (which should be in BBCode, not just pasted) doesn't include nearly enough information to determine if you're doing the right things. For example, the DCB references DDNAME=NAME1 but it's not clear that the BPXWDYN call is using NAME1 as the DDNAME. |
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Can you please send one test mail to eaddr removed, so that I will send you the details clearly. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please do not post your e-mail address - there have been problems with spammers. . .
Clear details may be posted here - actually, it is what we prefer |
|
Back to top |
|
|
|