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
 

 

FTP parameter card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 46
Location: LA

PostPosted: Thu Jun 23, 2005 4:00 am    Post subject: FTP parameter card
Reply with quote

Hi guys
i need some quick help with an FTP parameter card. In the card, the destination filename is to have a date tag. (shown below)

ASCII
PUT 'Source Mainframe DS' AUDT.20050608.CTL
QUIT

This tag is to change every day. But that would mean changing the FTP card every day. What is the best way of doing this? (Other than by writing a COBOL/Rexx program?)
Can we use DD name in the FTP card by some means? (then we could simply do a &DATE thing in the JCL.

Thanx in advance!!
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Jun 23, 2005 6:50 am    Post subject: Re: FTP parameter card
Reply with quote

Well, the first obvious choice is to name your dataset the same as the required target file (i.e. AUDT.20050608.CTL). However, I'm sure you realize that that's an invalid dataset name, so that option won't work.

In your post, you ask
Quote:

Can we use DD name in the FTP card by some means?

The answer is, of course, yes:
Code:

>put //DD:DDNAME AUDT.20050608.CTL

but I fail to see where that will help. I do know that if you omit the target filename, FTP will use the DDNAME as the filename, but that's only up to 8 characters.

Some utility/program/REXX exec/CLIST will have to be used to generate the target filename with the date value. Your options here are wide open, depending on what you prefer to use.
Back to top
View user's profile Send private message
naive

New User


Joined: 26 Apr 2005
Posts: 46
Location: LA

PostPosted: Thu Jun 23, 2005 7:47 am    Post subject:
Reply with quote

Ok, the target filename may be modified to AUDT.D050608.CTL, but then will I be able to use DD name in the card to signify the target filename??
Programming will solve it of course, but my developer is complaining!!
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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