Can Data Services take .gz (zipped) file

Hello,  I am trying to figure to how to setup a Data Services job to process an .xml file that is stored in a .gz (zipped) file.   Can Data Services process .gz files?    I don't think it can.   I need to figure out how to unzip it in the job and process the file..
Thanks.

From reading this thread, i'm guessing you re fairly new to unix ?
Before getting too involved in the data services part of this, make sure you aren't getting problems because of other issues.
first, write your script to call gzip taking a filename as a parameter.
I suggest you create a standard directory you keep all the scripts you will call from Data Services in. 
When you are login in to the account Data services runs under
type:
cd ~
(This should change to your home directory if your not already there) then press return.
next type:
pwd
then press return
This should display the home directory for data services.  Lets assume it is '/home/dataservices'
Next create a directory for your script:
mkdir /home/dataservices/scripts
change into that directory:
cd  /home/dataservices/scripts
write your script:
vi gunzip.ksh
(Replace vi with the editor or your choice)
Your script should at its most basic look something like this:
#!/bin/ksh
gzip - d $1
NB:  If you don't understand shell scripting, google is your friend.  A link I found quickly:
http://www.dartmouth.edu/~rc/classes/ksh/
next set the script as executable:
chmod u+x gunzip.ksh
finally verify it works from the command line:
/home/dataservices/scripts/gunzip.ksh myfile.gz
If it uncompresses the file, you should be able to run this from data services with no trouble.
If you don't understand these unix commands, you really need to forget about data services for a while and go and learn unix There is plenty of good stuff online and millions of books for beginners like dummies guides, etc.
Good luck !

Similar Messages

  • Can't open dmg or zip files

    I have Yosemite, and recently installed the latest system update for this.
    I've noticed today that I can't open dmg or zip files - attempting to do this via the 'open with' command results in the icon for (eg disk utility) appearing in the dock and hanging.
    I can mount via Disk Utility - though I'm having issues opening the resulting mounted applications as these then also appear in the dock and hang. Haven't found a way to open zip files yet.
    I have tried repairing permissions and disk - with no effect. Restarting the finder also has no effect.
    Anybody have any ideas what could cause this (these seem like basic functions) or any troubleshooting steps?
    Many thanks!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • What applications can open a Domain.sites2.zip file?

    I am hoping someone out there in the Mac community can help me:  I'm taking over a website that was created with iWeb and someone has given me what seems to be a totally unusable "zipped" version of the site.  I can't make heads or tails out of it.  They said that iWeb does not import files, so presumably even if I get iWeb and try to use the file, it isn't going to work.  But the export function must exist for some reason, right?  :-)  Presumably there are other software options out there that can open this and perhaps using them I can re-export it into standard HTML?
    I generally run Linux and would ideally like suggestions as to what Linux program I should use to open this...but if that's not possible, any help would be great.  I really appreciate any and all help or suggestions.  Thank you!

    Firstly, do you have a Mac and are you using a Mac that has iWeb on it?  It would seem so from your profile as you have iWeb 08 at the bottom and Mac OSX 10.6.8?
    If so all you have to do with any zipped file is double click it and it will unzip, so if you double click on a zipped domain.sites file, it will unzip and you are then left with the domain.sites file.
    The application that will open a domain.sites file is iWeb and only iWeb.  On your Mac, all you need do is place the domain file in the same place that it normally resides which is under User/Library/Application Support/iWeb/domain.sites and then double click it and iWeb will open it.
    You say that you are using iWeb 08?  In this case, you need to ensure that you are using iWeb 08 or above - IWeb 09 on your own Mac so that you can open the domain file - domain files are not backward compatible.
    It is correct that iWeb CANNOT import files - iWeb has no import facility for html files - it is unable to open a site that has been published being html and css.
    What you have been given is the domain.sites file that iWeb most definitely can use and open - the domain file is NOT and html file and contains all the data that iWeb can use and that is why you have been sent the file because iWeb can use this file. 
    There is no export facility as you put it in iWeb, but there is a publish to a local folder option that is used to publish your site and then upload it to a server.
    Generally, iWeb sites do not import well into other programmes so if you want to do this, then it would be best to re-build the site using another programme, but if you have a Mac running iWeb, then just double click on the zipped file and it will open it and iWeb will then open the domain.sites file.

  • BO Data Services - Reading from excel file and writing to SQL Server Table

    Hi,
    I would like to read data from an excel file and write it to a SQL Server Data base table without making any transformations using Data Services. I have created an excel file format as source and created target table in SQL Server. The data flow will just have source and target. I am not sure how to map the columns between source and target. Appreciate your quick help in providing a detailed steps of mapping.
    Regards,
    Ramesh

    Ramesh,
    were you able to get this to work? if not, let me know and I can help you out with it.
    Lynne

  • Can't Open (Decompress) any ZIP files all of a sudden!

    Hi
    I've never had problems opening Zip files until a couple of days ago.
    All of a sudden I can't open Zip files from 2 different sources.
    I've tried downloading them in Safari and Firefox.
    I've tried the built in expander and I've tried Stuffit (latest version) and The Unarchiver.
    I keep getting error messages, usually saying the data is corrupted or that it was compressed with an unknown method.
    I got the original file re-sent to me several times (a purchase from a consumer website) with constantly the same result.
    Then today I received a different Zip file from a completely different source with the same result.
    My computer is up to date with all the latest Apple software updates.
    I've tried repairing disc permissions.
    Anyone know of this issue or have any ideas how to fix it?
    Thanks.

    To The Apple Discussion Boards!
    "I've tried repairing disc permissions."
    Did you restart your computer afterwards? If so, download a "zip" file. In the window that pops up, make sure *"Open With"* is selected. Make sure Stuffit Expander is selected or another utility that you want to open all your "zip" files.
    Option: Select +"Do this automatically for files like this from now on."+
    Click the "OK" button.

  • Can data in a Project 2010 file be synced with PWA timesheet data submitted against an un-published task?

    I recently learned that best practice when you're mid-project and have a task that should no longer be charged to is to use the "Close Task to Update" option in Project Server 2010 instead of setting the "Publish" field to "No"
    to remove the task from team members' timesheets because removal of task entries can lead to data inconsistencies.
    Prior to learning this, one of these data inconsistencies was introduced into one of my project files. Specifically, I set the "Publish" status to "No" on completed task without realizing that a team member had submitted a correction
    to a previous time period's timesheet that had not yet been approved. These corrected data are now shown in the Reporting Database, but they did not get carried through to the project file.
    Is there a way to reconcile the data shown in the project file with the data in the Reporting Database?

    Prasanna,
    Here's what I think happened:
    User submitted incorrect actuals against Task A on his timesheet. (In addition to the expected hours against the current period [TS1], he had accidentally submitted actuals against a future time period [TS2] that was not part of my current review window.)
    Not realizing he had incorrectly reported his time, I accepted the actuals and published them to the project.
    I updated the project, changing the Publish flag for Task A to No since no further work was expected against the task.
    The following week, the user resubmitted a correct version of TS2.
    The reporting database got updated with the new TS2 data.
    Everything in my approval queue that was submitted by this user has been approved and published; however, the data in my project file does not match what I am seeing in the reporting database.
    Do I just need to change the Publish flag for Task A back to Yes to get my project file to capture the changes that were made during the resubmission of TS2?

  • Can't view photos in zip file

    A friend has sent me some photos that are in a zip file. Can anyone tell me how to open and view them? I have saved the file to the desktop and doubleclicked it. Then I control click and open it with appleworks but I only get the captions that go along with the photos.

    If the files have a name ending in .zip, they are compressed. Zip files need to be expanded using Stuffit Expander. After using Stuffit, the file names should end with a graphic identifier, like .jpg. Then open Preview & select the file.
     Cheers, Tom

  • Why can't I upload a .zip file to my Creative Cloud?

    Each time I try and upload a .zip file it gets about 80% complete then I get a message that says "Sorry, an error has occurred."  I've uploaded lots of .zip files in the past.  What has changed???

    JimHdk wrote:
    You can directly transfer photos via Bluetooth or WiFi between the iPhone, PCs, and Macs with an App like Photo Transfer.
    Huh? Bother to read the app description? Only works over WiFi.

  • Can I password protect a zip file?

    Is it possible to encrypt or place a password on a zip file created in the Finder?

    not from finder. you can do it from terminal if you wish or use some 3rd part archiving tool like Stuffit . I think it can make password protected zip files. but zip passwords can be cracked. a better option is to use an encrypted disk image instead of a zip file. you can make one with disk utility.

  • How can I save an attached ZIP file

    I cannot access an attached ZIP file in Acrobat XI Pro. Please help as this is becoming a huge time waster.

    Hi alisonr1825446,
    When you convert a PDF file to Word/Excel, it's automatically saved to your Acrobat.com online account. From there, you can download it to your desktop to edit it, and then save it. To download your file, log in to https://cloud.acrobat.com/files. Select the file, and then click the Download link at the top of the file list. Your file will be downloaded to the Downloads folder on your computer.
    Please let us know how it goes.
    Best,
    Sara

  • Can't import the exercise zip files

    I downloaded the exercise zip files and tried to import them to flex 3.
    I can browse to the zip but flex will not let me finish.

    Not sure what you are saying.
    Downlaoded the exercises to my HD. Created a folder "Flex in a week" and tried to import the exercises.
    Same problem wirh some books. Download the source code as a large zip. unzip the file and try to import projeect folder or project zip and can't.
    Must be operator error software can't be that hard
    Herman

  • Where Can I Find the classes.zip File?

    I am looking for the JDBC driver for the Oracle database. I have been to the http://www.oracle.com to look for the classes12.zip and could not find it. Has the name of the zip file changed for Oracle JDBC 10.1.0?

    There are two parts: the java version and the database version.
    This would normally be: classes11.zip, classes12.zip and ojdbc14.jar.
    You should probably be using the last. The first two would be for earlier versions of the database and java.
    If you install the Oracle client it should have it (look for a jdbc dir.)
    There is some place to download it from the otn site as well.

  • Can not Unzip oracle 11g zip file for x64

    Hi,
    I have downloaded oracle 11g file from (window 2008 server with x64)
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win64soft.html
    File Name      win64_11gR1_database_1013.zip
    when i try to unzip this file I got an error like:
    Archive: win64_11gR1_database_1013.zip
    End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.unzip: cannot find zipfile directory in win64_11gR1_database_1013.zip,and cannot find win64_11gR1_database_1013.zip.zip, period.
    error indicates me towards two ways
    1] File is invalid - I have downloaded same file twice
    2] File is distributed in multiple files- site have only downloadable link
    Can any one please help me to get out of it?
    Thanks and Regards
    B.Sandeep

    If you are really on Windows 2008, this file is wrong , you need
    Oracle Database 11g Release 1 (11.1.0.7.0)
    for Microsoft Windows Server 2008 x64
    Of course that doesn't necessarily solve your general unzip problem, compare the size of the downloaded file with the size on the download site. If there's a difference,download is not complete for whatever reason.
    Werner

  • DPS App Builder - Can't create ipa or zip files

    Hello,
    I'm following this guide : http://help.adobe.com/en_US/ppcompdoc/Step_by_step_guide_to_dps_se.pdf
    But I'm stack on page 55 between number 6 and 7.
    The program download my files, and change for this message (FR sorry) :
    So it look like it finnishs to download successfully and I think try to compute files.
    But quickly, I get this error (where I'm currently stack) :
    If I try to translate it, it should be somethink like :
    -> Not enough ressources for the "sheet" (?) of thisapplication. To fix it, delete the "sheet" and create a new one in the Folio Builder Panel, and then try to rebuild your application.
    I spend half day to fix links and update all the project as I was guessing this error will be a wrong indesign file link.
    I can also try to recreate an application, but the error message is (for me) more that you don't know what to do and do not want to lost another half (or full) day just to pop the same error message.
    I was already make kind of the same app on a friend account and do not show this error, so if someone already seen it or know how to fix it, it will be really nice.
    In the wait time, I start to rebuild all the app from start and let you know if something change.
    Thank you.

    Sorry, look like my post number 4 was for my second thread.
    Anyway I fix it by log out Folio Builder in Indesign and log in again.
    BUT I'm still stack on the picture on main post.
    AND it is for sure with my new app, made from start, add page per page.
    On this new app, the Adobe Content Viewer works fine on Desktop and iPad 3.
    To help a bit, I make a Google translate of the massage :
    Resources are insufficient for the sheet of this application. To solve this problem, remove the sheet and create a new one using the Folio Builder panel, and try to rebuild your application.
    As I now understand, it is maybe just one indesign file to doesn't works, but which one ?
    And my book is a translation of an other one (my first one) that work perfectly without trouble. I just change some page as it was French specific.
    If someone can help me and save my deadline
    So desesperate.
    Thank you for reading.

  • I can no longer download a .zip file using Firefox 15.01 on the 2010 Mac (Snow leapard 10.6.8) using the method to have it SAVE in a folder of my choice.

    Also..even though I tell file to SAVE to a folder of my choice..it will put a gibberish file in the Default DOWNLOAD folder with the suffix name ".part" at the end of it. I have uninstalled Firefox, loaded it fresh, zapped the prams, cleared the cookies. I really need this function back. Please help.
    Works fine going DIRECT to DEFAULT DOWNLOAD folder then drag to folder of my choice but this is a BIG TIME WASTER ESPECIALLY as I have been doing this other way for several years now.

    Do you get a working file if you remove the .part and if necessary replace it with the correct file extension or is that file still corrupted?
    Firefox should still rename the file to the name that you specified after the download has finished.
    See also:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    *https://support.mozilla.org/kb/Unable+to+download+or+save+files

Maybe you are looking for

  • Link b/w QALS and MSEG TABLE

    hi, i want to make a link up between QALS AND MSEG table as i want to those inspection lot which have the UD = REJECTED and stored in SC01 etc storage locations. Till now i am able to find that the Item which are rejected having material documents pr

  • Provider hosted app installed on SharePoint 2013 on premises is returning internal 500 error !

    Hello, I have deployed the basic provider hosted app on sharepoint 2013 on premises. However when I try to run the app, its throwing an error on following as mentioned in screen: It seems an authentication issue, would you please tell me how can I re

  • Creating multiple PDFs from an xml form

    Hello-- I am a LiveCycle Designer beginner, so please bear with me. I'm hoping to automate the creation of multiple PDFs from within a LiveCycle XML form I created.  We have a database with vendor contact information. Each vendor could have multiple

  • My iPhone5 is always in Vibrate mode after os7 upgrade

    After my OS7 upgrade, my iPhone 5 is always in Vibrating mode, tried several things but nothing work. Any help is greatly appreciated.

  • AHHH! major problems. Please help. (iPod wont restore)

    Having tried every FAQ recommendations i could find, nothing is working. I have a 4th gen 20GB click wheel, no color, and when i plug in the USB it does one of several things, 1. the ipod freezes and seems to be stuck in the loading mode. 2. is not r