Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


PGM
QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt
serverUserID@server')
ENDPGM

Can u plz tell me what the above code do exactly?

Answers were Sorted based on User's Feedback



PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') E..

Answer / syam

-b = Batch file
/home/test/myfile.txt = path of input file

serverUserID@server' = ip address

then

PUT or Get command

Bye command = Quit


SFTP is a Linux Unix command

Is This Answer Correct ?    2 Yes 0 No

PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') E..

Answer / ravi

I believe, it gets the details of the file mentioned in the path like created/changed date etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

What is the use of OVRPRTF ?

1 Answers  


What is the purpose of SFLNXTCHG keyword in a subfile?

1 Answers  


how do you turn off indicators 50 through 59 in only one operation

1 Answers  


Q.1.What is differences in STRDBG and STRISDB debugging commands? 2.Where we should use STRDBG and STRISDB Debugging commands?

6 Answers   CTS,


writing an sql statement from selecting records from two files using single statement and nested select statement.

0 Answers   IBM,


1) Suppose we call a pgm from CL, how come AS400 system knows whether the called pgm is to be interactive one or batch one? 2)How many members can exist in a PF?

7 Answers  


What are the two main attributes, which govern the execution of a job?

1 Answers  


What is a library list ?

1 Answers  


What is keyword PFILE specifies ?

1 Answers  


how can you detect and handle a record lock situation?

1 Answers   IBM,


difference between view and index ?

0 Answers   IBM,


how can we view the entire objects and its types in a pgm?

7 Answers   Mind Tree,


Categories