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

Writing into intrdr with pl1


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

New User


Joined: 09 Dec 2006
Posts: 3
Location: Israel

PostPosted: Sat Dec 09, 2006 11:55 pm
Reply with quote

Hello,

I need help running a dynamic job that I create in pl1 in jes.
I know that I need to put the job in INTRDR but how can I do it in pl1.

thank u all helpers,
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sun Dec 10, 2006 3:35 am
Reply with quote

Just define an output file ( dynamically or not ) to WRITER(INTRDR) SYSOUT(B) ... then write you JCL data into that file, close the file..... and see the job running in JES.

Regards
Pierre
Back to top
View user's profile Send private message
ilan_m1000

New User


Joined: 09 Dec 2006
Posts: 3
Location: Israel

PostPosted: Sun Dec 10, 2006 1:36 pm
Reply with quote

can i have an example for it.
because i try to do it and it failed.

10x
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sun Dec 10, 2006 2:10 pm
Reply with quote

Here sample of code ( not tested )

Code:

DCL  FILRDR                FILE RECORD OUTPUT SEQUENTIAL     
                           ENV(FB,RECSIZE(80),BLKSIZE(3200));
DCL  ZFILRDR               CHAR(80);                         



DCL    BPXWDYN EXTERNAL ENTRY OPTIONS (ASM INTER RETCODE );       
DCL    ALLOC_STR CHAR(300) VAR INIT(' ');                         

FETCH BPXWDYN;

.......

                                                   
ALLOC_STR =  ' FREE  FI(FILRDR) ';                                 
CALL BPXWDYN(ALLOC_STR);                                             
                                                                 
ALLOC_STR =  ' ALLOC FI(FILRDR) SYSOUT(B) WRITER(INTRDR)';         
CALL BPXWDYN(ALLOC_STR);                                             
                                                                 
ZFILRDR = "//USERID  JOB (01212),                   ";     
WRITE  FILE(FILRDR)  FROM (ZFILRDR);                             
ZFILRDR = "//             'PED806',                 ";     
WRITE  FILE(FILRDR)  FROM (ZFILRDR);                             
ZFILRDR = "//             CLASS=A,MSGCLASS=X,       ";
ZFILRDR = "//             MSGLEVEL=(1,1),REGION=512M";     
WRITE  FILE(FILRDR)  FROM (ZFILRDR);                             
ZFILRDR = "//CMPVL121 EXEC PGM=IEFBR14              ";     
WRITE  FILE(FILRDR)  FROM (ZFILRDR);                             
ZFILRDR = "//SYSPRINT DD  SYSOUT=*                  ";     
WRITE  FILE(FILRDR)  FROM (ZFILRDR);                             
CLOSE FILE(FILRDR);                                               

CALL BPXWDYN(ALLOC_STR);                                           
         


If you still have an error, it will help if you show it.

Regards
Pierre
Back to top
View user's profile Send private message
ilan_m1000

New User


Joined: 09 Dec 2006
Posts: 3
Location: Israel

PostPosted: Sun Dec 10, 2006 5:35 pm
Reply with quote

thank u alot i hope it will help me
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 Two input files & writing counter... DFSORT/ICETOOL 12
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
No new posts Concurrent writing records to VSAM fr... JCL & VSAM 9
Search our Forums:

Back to Top