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

Assembler Dynamic allocation


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Nov 13, 2008 9:00 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 13, 2008 9:06 pm
Reply with quote

Use the search function in this forum. I recently posted an Assembler program that dynamically allocates a sequential file.
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Nov 13, 2008 10:10 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 13, 2008 10:28 pm
Reply with quote

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
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Nov 13, 2008 10:59 pm
Reply with quote

Can you please send one test mail to eaddr removed, so that I will send you the details clearly.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Nov 14, 2008 3:01 am
Reply with quote

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 icon_wink.gif
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top