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

How to pass a value dynamically to EZACFSM1


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
agsathyan

New User


Joined: 06 Apr 2009
Posts: 4
Location: India

PostPosted: Sun Nov 04, 2012 1:20 pm
Reply with quote

Requirement:
-------------------
Need to populate a FTP destination file name in format XXX_RFSI_EXTRA_20121104_104522.TXT where XXX can be 001, 002 ... 009

Sample Code:
------------------
I tried to populate the file name using program EZACFSM1 as below.
But i am not able to pass the value of XXX dynamically.

//STEP001 EXEC PGM=EZACFSM1
//SYSIN DD *
PUT 'KANDA.RFSI.SCRIPT.EXTRA.DATA' +
XXX_RFSI_EXTRA_20&LYYMMDD_&LHHMMSS..TXT
QUIT
/*
//SYSOUT DD DSN=KANDA.SAMPLE.FTPPARM,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,RECFM=FB)
//*


Expected Output in KANDA.SAMPLE.FTPPARM :
----------------------------------------------------------
when XXX = 001, output should be:

PUT 'KANDA.RFSI.SCRIPT.EXTRA.DATA' +
001_RFSI_EXTRA_20121104_104522.TXT
QUIT

when XXX = 002, output should be:

PUT 'KANDA.RFSI.SCRIPT.EXTRA.DATA' +
002_RFSI_EXTRA_20121104_104522.TXT
QUIT

Query:
-----------
Is there a way to pass the value of XXX dynamically to EZACFSM1 ?

Thanks & Regards,
Agsathyan
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Nov 04, 2012 8:36 pm
Reply with quote

Hello,

Not that i know of, but you could create the control statements with the XXX resolved and then use the generated statements in the EZACFSM1 step.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
Search our Forums:

Back to Top