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
 

 

Assembler Dynamic allocation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Assembler Dynamic allocation
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: 7931
Location: Bellevue, IA

PostPosted: Thu Nov 13, 2008 9:06 pm    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

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

Read this document ftp://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    Post subject:
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

Site Director


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

PostPosted: Fri Nov 14, 2008 3:01 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm


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