sFTP from Mainframe to server



All other tools like QACenter, Strobe, Endevor, Telon, APAS, Scheduler, Auditor, DATA-XPERT, CoolGen, Intertest, AdvantageGen, COBTEST etc.

sFTP from Mainframe to server

Postby dphill06 » Mon Dec 08, 2014 10:58 pm

Currently have following and is working great.

99.999.999.99    (EXIT=16
ANONYMOUS
sample@sample.NET
cd prod/arc/import
put 'EPLEGD00.DB2.EP270408(0)'  ach_returns
 quit


What I would like to do is add a sequence number at the end of the file being created on the serve. At the present, if a current file exist, the new file will replace it. I need to maintain all files.

Coded
dphill06
 
Posts: 4
Joined: Mon Dec 08, 2014 10:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: sFTP from Mainframe to server

Postby Blackthorn » Tue Dec 09, 2014 3:17 pm

Good idea. Sounds simple enough.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: sFTP from Mainframe to server

Postby dphill06 » Tue Dec 09, 2014 7:30 pm

OK, sounds easy enough; then what is your suggestion?
dphill06
 
Posts: 4
Joined: Mon Dec 08, 2014 10:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: sFTP from Mainframe to server

Postby Blackthorn » Tue Dec 09, 2014 7:48 pm

Use a language of your choice, e.g.; Rexx, to generate the sysin with the appropriate file name.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: sFTP from Mainframe to server

Postby dphill06 » Tue Dec 09, 2014 8:06 pm

Sounds good, but I believe there is a seq number command that can be used to increment and add to the end of the file name if a file already exist in the directory. I am unable to locate this again.

I thought it was something like UNIQ=0 or 1 depending on if you wanted to add sequence number or replace.
dphill06
 
Posts: 4
Joined: Mon Dec 08, 2014 10:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: sFTP from Mainframe to server

Postby enrico-sorichetti » Tue Dec 09, 2014 9:35 pm

as per man pages
sunique Toggle storing of files on remote machine under unique file names. The remote FTP server
must support FTP protocol STOU command for successful completion. The remote server will
report unique name. Default value is off.


but You will have to run a few tests
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: sFTP from Mainframe to server

Postby dphill06 » Tue Dec 09, 2014 9:39 pm

just to get this correct in my mind, Shout the SUNIGUE=1 be after the PUT command or on the same line as the OUT command
dphill06
 
Posts: 4
Joined: Mon Dec 08, 2014 10:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: sFTP from Mainframe to server

Postby enrico-sorichetti » Tue Dec 09, 2014 9:51 pm

why not run a few experiments Yourself and tell us ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to All Other Tools

 


  • Related topics
    Replies
    Views
    Last post