Yup, I tried the script manually ftp and was able to put the file and then kick off the job. Also I noticed when running the script although the error message comes up the file does get ftp to the mainframe and job kicks off but for some reason return code is not 0 for success so i have a error...
Hi! I am trying to ftp a file to the mainframe using perl and once i have ftp the file i would then like to kick off a job or jcl. When trying to kicking off the jcl or job i would get an error message of 'unable to close datastream' am i missing something in particular?
use Net::FTP;
my...
Hi! I have a perl script that renames and ftp files to another server dynamically(whenever a file comes in the script would automatically kick off).
However from time to time ftp connection would get hosed up so if ftp connection fails I have the perl script ot place the failed file in a tmp...
I tried this and the 2nd column Name2 was generated however NAME2 column has values of 'null'. I would like to retrieve the info from the query below into the 2nd column Name2.
SELECT NAME as "NAME2" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID IN (SELECT ENVELOPE_ID FROM GIS40.ENVELOPE_PARMS)
Hi I AM TRYING TO RETRIEVE INFORMATION FOR THE COLUMN NAME HOWEVER WOULD LIKE TO SEE THE 1ST QUERY IN 1 COLUMN AND THE 2ND QUERY IN ANOTHER COLUMN(NAME2) HOWEVER THE BELOW QUERY COMBINES THE SEARCH INTO 1 COLUMN. THANKS IN ADVANCE.
SELECT NAME as "NAME1" FROM GIS40.ENVELOPE WHERE ENVELOPE_ID...
Morning hopefully I am at the correct forum. I am trying to ftp a file from ibm os/390 to an aix mailbox. I would like to try using passive mode but receive an error when attempting so. Is it possible to do ftp passive from os/390?
====================================
ftp.site.com 21
loginid...
Hi I have a file that have thousands of lines I would like to create a perl script that looks at each and scan through to see if any of lines are duplicates. Any help or link is appreciated.
Hi I have a bourne shell script that copies a file to another server or to a shared directory is there a way to do some kind of error handling if the file is unsuccessfully when copying over? Any help or links would be great.
#!/bin/sh
EDIOLD_DIR=/usr/local/cyclone/data/14001695568GT/ediold...
Hi i am trying to do a multipe cronjob but not sure if i am doing this correctly and I don't think it is working due to the warning message I am receiving below:
=================
Warning: Cannot convert string "-dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*" to type FontStruct
Warning...
Hello i am trying to ftp a list of files in a single session once done ftp the files successfully i would like to delete the list files. Instead of deleting the files are ftp twice and then error message of "Can't return outside a subroutine" at the line of closedir(EDIOLDTMP)
#!/usr/bin/perl...
Morning I am trying to unlink files when I receive a ftp return code of 0 or successful but I keep getting an error message of 'can't take log of 0' and gives me the line at
"if ( $ftpsub_rc == 0 ) { unlink( $file),
===============
#!/usr/bin/perl
# The files are moved in batch mode.
my...
Morning,
I am trying to unlink(delete files) after ftp a list of files successfully to another server. I tried doing so when I receive a good return code for ftping the files
but receive an error message of "Can't return outside a subroutine at cyclone_ob_GIS_2.pl line 31." Your help is...
Ok sounds good below I try to ftp the files but instead of processing i am ftp a list of files but I receive an error message of pathname does not exist. Sorry I am really green in pearl
==================================================
#!/usr/bin/perl
my $now=localtime;
open(LOG...
Morning,
Is perl able to ftp multiple files in a single session. Currently I have a perl script that ftps the file to another server but it does one at a time open/closing a session which the 2nd server is unable to handle. Thanks in advance...
yes this is just a sample but i do have print statements and log report that do track that I was able to login in successfully and change the to the correct folder path.
I apologize I was trying to keep the it short so i cut a few lines out. But below is the complete script. Per to your comment I did fix the $NOW to $now
#!/usr/bin/perl
use File::Copy;
use File::Basename;
#PERL SCRIPT TO PUT FILE FROM HQDAT01 TO CYCLONE BINARYOUT/PIMAAFESIMFT
#DEFINE...
Morning,
I am trying to put a file from 1 server directory to another server directory. I keep getting the below error message I am not sure what i am missing. I apologize for the dumbness still trying to learn Perl.
Cannot open Local file /usr/local/cyclone/data/ZZAAFES/binaryout/test.txt...
Thanks for your help. so far I was able to get the format for the filename with the current date and time. I am having a problem with the month though. The format is suppose to be: sample_yyyymmdd.hhmmss.1
what I keep getting is sample_2005425.153542.1 it should be sample_20050525.153542.1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.