Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rozzay

    ftp mvs

    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...
  2. rozzay

    ftp mvs

    i do apologize i did not include the last line of the script i do initiate a quit right after the get statement. $ftp->quit();
  3. rozzay

    ftp mvs

    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...
  4. rozzay

    wildcard or caputuring filename dynamically

    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...
  5. rozzay

    retrieve data but separate columns

    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)
  6. rozzay

    retrieve data but separate columns

    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...
  7. rozzay

    ftp passive mode on os/390

    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...
  8. rozzay

    find duplicate line

    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.
  9. rozzay

    bourne shell error handling for copy files

    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...
  10. rozzay

    crontab -e multiple cronjobs

    I ran each of the .pl script individually and it was able to process successfully. Am I missing a semi-colon or something?
  11. rozzay

    crontab -e multiple cronjobs

    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...
  12. rozzay

    unable to delete

    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...
  13. rozzay

    Can't take log of 0

    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...
  14. rozzay

    unlink files after ftp list

    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...
  15. rozzay

    ftp multiple files in single session

    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...
  16. rozzay

    ftp multiple files in single session

    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...
  17. rozzay

    put file into another server

    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.
  18. rozzay

    put file into another server

    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...
  19. rozzay

    put file into another server

    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...
  20. rozzay

    format filename to yyyymmdd.hhmmss

    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...

Part and Inventory Search

Back
Top