Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
dynamic open and what alloc the files?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
grabeva

New User


Joined: 07 Sep 2006
Posts: 23

PostPosted: Tue Nov 18, 2008 10:20 pm    Post subject: dynamic open and what alloc the files?
Reply with quote

Hello....all

My program opens 1 different file according to a read MQ-message.

First program
- read a MQ message, : fileAA
- call moduleA using variable=fileAA
continue with process.
Stop run



moduleA
open output fileAA
return.


My job is like this:
Code:

//XTPMQ001 EXEC PGM=First program,REGION=4096K                   
//STEPLIB  DD   DSN=ENDEVOR.ADMINWRK.LOADLIB,DISP=SHR       
//         DD   DSN=CEE.SCEERUN,DISP=SHR                     
//         DD   DSN=CEE.SCEELPA,DISP=SHR                     
//         DD   DSN=MQM.V5R3.SCSQLOAD,DISP=SHR               
//         DD   DSN=MQM.V5R3.SCSQANLE,DISP=SHR               
//         DD   DSN=MQM.V5R3.SCSQAUTH,DISP=SHR               
//FILEBB DD DSN=FILEBB(+1),         
//            DISP=(,CATLG,DELETE),                         
//            SPACE=(TRK,(3000,100),RLSE),                   
//            RECFM=FB,LRECL=470                             
//FILEAA   DD DSN=FILEAA(+1),             
//            DISP=(,CATLG,DELETE),                         
//            SPACE=(TRK,(3000,100),RLSE),                   
//            RECFM=FB,LRECL=215                             


when program end, alloc 2 gdg, one with information another with cero register.

The problem is that I want to open a new gdg, only for the file that I want.
How write jcl with dynamic alloc?

thanks for yours times.
Gra
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Nov 18, 2008 10:52 pm    Post subject: Reply to: dynamic open and what alloc the files?
Reply with quote

Search these forums for the BPXWDYN Dynamic Allocation module and see if that might work within your program.
Back to top
View user's profile Send private message
grabeva

New User


Joined: 07 Sep 2006
Posts: 23

PostPosted: Thu Nov 20, 2008 9:16 pm    Post subject: Reply to: dynamic open and what alloc the files?
Reply with quote

my level is IBM COBOL for OS/390 & VM 2.2.1, i cant use B​P​X​W​D​Y​N,
because its up Enterprise.
i have another possibility?
Back to top
View user's profile Send private message
grabeva

New User


Joined: 07 Sep 2006
Posts: 23

PostPosted: Wed Oct 21, 2009 4:35 am    Post subject:
Reply with quote

i look for BPXWDYN Dynamic Allocation in this forum, but i dont find anything....please do yo give me a link that explain how i use...thks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Oct 21, 2009 5:12 am    Post subject:
Reply with quote

I did a search on BPXWDYN and found many hits immediately, including http://www.ibmmainframes.com/viewtopic.php?t=41691 which talks about exactly how to use it.
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: Wed Oct 21, 2009 7:48 pm    Post subject: Reply to: dynamic open and what alloc the files?
Reply with quote

Do not double-post the same question. . .

This topic is now locked.

And, as you were told in your original topic, you do not neet dynamic allocation.

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us