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
 

 

How to use REXX to send a file to a form ID?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Lord.of.Wind

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Mon Sep 28, 2009 1:09 pm    Post subject: How to use REXX to send a file to a form ID?
Reply with quote

Gurus:

Code:
//**********************************************************           
//*STEP TO RUN REXX TO CREATE FILE FOR FTP                             
//**********************************************************           
//STEP1     EXEC PGM=IKJEFT01,TIME=800                                 
//SYSPRINT   DD  SYSOUT=&MSGOUT                                         
//SYSUDUMP   DD  SYSOUT=&QDUMP                                         
//OUTPUT     DD  SYSOUT=&MSGOUT                                         
//SYSTSPRT   DD  SYSOUT=&MSGOUT                                         
//SYSTSIN    DD DSN=F8M2PB.JCLCNTL(C2B8QE50),DISP=SHR                   
//*                                                                     
//*********************************************************************
//*         COPY REPORT TO WSF2                                       *
//*********************************************************************
//STEP2      EXEC  PGM=IEBGENER,TIME=800,REGION=256K                   
//SYSIN        DD   DUMMY                                               
//SYSPRINT     DD   SYSOUT=&MSGOUT                                     
//SYSUT1       DD   DSN=????                                               
//SYSUT2       DD   SYSOUT=(U,,2Z32),DEST=WSF82R,                       
//                  DCB=(LRECL=133,BLKSIZE=0,RECFM=FBA)                 
//***********  END *****************************************************


In step1, a dynamically allocated ps is generated by REXX, such as file1.d090929. (090929 is the current date in yymmdd). And in step2, the file should be sent to a form ID 2Z32.

Now Gurus, I want to know how can step2 be embbed in step1, as it is not possible to use the dynamic file name in SYSUT1 of step2? I want to use rexx to execute step2.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Sep 28, 2009 2:21 pm    Post subject:
Reply with quote

What have you tried ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 28, 2009 3:23 pm    Post subject: Reply to: How to use REXX to send a file to a form ID?
Reply with quote

Code:
//**********************************************************           
//*STEP TO RUN REXX TO CREATE FILE FOR FTP                             
//*     and    COPY REPORT TO WSF2                                       *
//**********************************************************           
//STEP1     EXEC PGM=IKJEFT01,TIME=800                                 
//SYSPRINT   DD  SYSOUT=&MSGOUT                                         
//SYSUDUMP   DD  SYSOUT=&QDUMP                                         
//OUTPUT     DD  SYSOUT=&MSGOUT                                         
//SYSTSPRT   DD  SYSOUT=&MSGOUT                                         
//SYSTSIN    DD DSN=F8M2PB.JCLCNTL(C2B8QE50),DISP=SHR                   
//*                                                                     
//SYSUT2       DD   SYSOUT=(U,,2Z32),DEST=WSF82R,                       
//                  DCB=(LRECL=133,BLKSIZE=0,RECFM=FBA)                 


??
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Mon Sep 28, 2009 9:20 pm    Post subject: Reply to: How to use REXX to send a file to a form ID?
Reply with quote

From your rexx, invoke IEBGENER to copy from your dynamically created file to the print file.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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