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: 6967
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: 2038
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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