Unix file problem

Hi gurus,
      I am creating program which reads the data from unix file  and print it.
but i am having one major problem while reading that data. when i read the currency value from the file it displays #sign every time wht can i do to eliminate this
please give me the solution ASAP.
thanks in advance.
Vinod

Hi
sign comes ... when the mode of writing that file is other than ASC.
if you write the file to app server in ASC.. things will solv in many cases..

Similar Messages

  • URGENT : Writing to UNIX file problem !

    Hi friends,
    I am stuck at a crucial point while uploading a UNIX file from ABAP program.
    I am using open dataset & then transfer to...the file path.
    But when I go and check the UNIX file it is split into 2 lines (it is supposed to be a
    record with 1 line with 1500 characters) ! It shows a maximum of 255 chars in one line.Moreover,while I download to a text file via Txn CG3Y,some data are missing or truncated etc.
    Please suggest how can I create a record with 1500 characters in UNIX and download it successfully with full data or how can I ensure proper data has been transferred as the record display is truncated.I checked the program its fine,only after transferring I get the problem.
    Thanks,
    Sandip.

    The files would not get truncated. The file actually exists in App. server but you will be able to see only uptil 255 characters. You can check the same by downloading it onto Pres. server by specifying  file type as BIN when you are downloading through CG3Y

  • Problem with special character in Unix file

    Hi All,
    Need a help here. We have unicoded our system recently.
    It's regarding a special character (umlaut) that comes through a 3rd party system to an Unix file. This gets displayed in AL11 file as # instead of ö.
    As our program picks the file from Unix, it also has the # but we want ö.
    We could have done some fixes in our code to fix if AL11 file at least had ö and we got # in our program.
    But it's the other way round. So, how can we get rid of this issue? Please suggest.
    Regards,
    Sanj.

    How Al11 is reading file ? Look for
    OPEN DATASET "yourfilename" IN TEXT MODE ENCODING DEFAULT FOR INPUT
                                  IGNORING CONVERSION ERRORS.
    If the above code is there .. you might need to play with different 'OPEN DATASET " options .
    Also look for Note 1174468 - Non-7bit-ASCII characters used in ABAP Workbench
                       Note 1227961 - Names of text fields with non-7-bit ASCII characters
    Good Luck !
    ^Saquib

  • Unable to Open unix file in UNICODE system which created NON-UNICODE system

    Unable to Open unix file in UNICODE system which created in NON-UNICODE system
    We have two SAP systems both are ECC6.0 but System 1 is NON-Unicode and System2 is Unicode system.
    There is a common unix directory/folder for both system.
    Our requirement is to create one file on unix common folder and write the data to file from system1 .
    In system2 open the same file for appending mode to write the data .
    The file in system 1 created with below sentence.
    OPEN DATASET g_unix_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    Now I have to append the data from system 2 to same file.
    I have tried to used below statement in system 2 to open the file but sy-subrc value comes as '8'.
    1> OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING UTF-8.
    2>OPEN DATASET g_unix_file FOR APPENDING IN legacy TEXT MODE CODE PAGE
    cdp IGNORING CONVERSION ERRORS  .
    3>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING Default.
    4>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.
    Tried out all the possibilities as per F1 help given for open dataset , but still there is problem with opn file in appending as well output mode.However the file successfully open in Input mode(Read).
    Please advice suggestion to resolve this issue.
    Thanks.

    Messgae captured as 'Permission Denied". The program gets triggered with system user Id PPID.
    How to check the security access of the User ID.

  • Files (fonts) appear as Unix files when viewing on an SMB share

    We have a UNIX server running Linux which our Mac users are connecting via SMB.  We moved our company fonts to this server from an OSX Server.  All of our machines are running 10.6.6 or later.  Very intermittantly without any rhyne or reason some users when they mount the Font share, the Fonts show up as Unix files rather than the Fonts.  On my machine (10.7) they all appear normally.  Now I know that SMB was revamped in Lion so this may be the reason I can see them no problem.  But the 10.6 machines, any suggestions on fixing this?

    Any solution on this issue? I have nearly the same exact issue in my environment, but is reversed.
    The problem we have is when saving files to the server from the Snow Leopard machine, the older Tiger machines see the fonts as unix executable files. The snow leopard machine sees the files fine and can open everything with no problem.
    This only happens when saving to a SMB server, as I can save the files from Snow Leopard to a flash drive and open on Tiger with no problems. Additionaly files saved from Tiger to the server are perfectly fine when accessing from Tiger or Snow Leopard.
    We're running Windows 2008 Server and connecting via the macs using the SMB method. Also duplicated the issue on a Windows 2003 Server.

  • Uploaded Files stored in Oracle 10G database or in Unix File system

    Hey All,
    I am trying to understand best practices on storing uploaded files. Should you store within the database itself (this is the current method we are using by leveraging BLOB storage) or use a BFILE locator to use the files system storage (we have our DB's on UNIX) . . .or is there another method I should be entertaining? I have read arguments on both sides of this question. I wanted to see what answers forum readers could provide!! I understand there are quite a few factors but the situation I am in is as follows:
    1) Storing text and pdf documents.
    2) File sizes range from a few Kb to up to 15MB in size
    3) uploaded files can be deleted and updated / replaced quite frequently
    Right now we have an Oracle stored procedure that is uploading the files binary data into a BLOB column on our table. We have no real "performance" problems with this method but are entertaining the idea of using the UNIX file system for storage instead of the database.
    Thanks for the insight!!
    Anthony Roeder

    Anthony,
    First word you must learn here in this forum is RESPECT.
    If you require any further explanation, just say so.
    BLOB compared with BFILE
    Security:
    BFILEs are inherently insecure, as insecure as your operating system (OS).
    Features:
    BFILEs are not writable from typical database APIs whereas BLOBs are.
    One of the most important features is that BLOBs can participate in transactions and are recoverable. Not so for BFILEs.
    Performance:
    Roughly the same.
    Upping the size of your buffer cache can make a BIG improvement in BLOB performance.
    BLOBs can be configured to exist in Oracle's cache which should make repeated/multiple reads faster.
    Piece wise/non-sequential access of a BLOB is known to be faster than a that of a BFILE.
    Manageability:
    Only the BFILE locator is stored in an Oracle BACKUP. One needs to do a separate backup to save the OS file that the BFILE locator points to. The BLOB data is backed up along with the rest of the database data.
    Storage:
    The amount of table space required to store file data in a BLOB will be larger than that of the file itself due to LOB index which is the reason for better BLOB performance for piece wise random access of the BLOB value.

  • Transfer string to unix file

    Hi Gurus,
    I am converting data in an internal table (consisting of 5000 records) into XML string using CALL TRANSFORMATION. All data is stored in XML format in a variable of type STRING.
    I am trying to write this data in a Unix file using TRANSFER statement.
    The problem is all data is not copied into the file!
    Can anyone suggest a suitable solution so that complete data in the string variable will be reflected in the file?
    Regards,
    Jack

    Hi,
    If you are opening the file in text mode, your itab fields have to be character type fields. So define another itab with fields of character type with lengths defined as per your output requirements.
    You have understand that if you have floating, decimal fields, currency or quantity fields in your itab, they are know to SAP only, once you try to download such records, converting them into character form needs to happen.
    Did you try the binary mode with your 'open dataset' statement?
    Srinivas

  • Changing Unix file attributes in target host

    Hello,
    I need to transmit a file from a SAP server to a target host in Unix.
    Actually the transmission is OK. I'm using the SAPFTP program.
    Now, my problem is that in the new file on the target system (in Unix) I need to change the file permissons to 777.
    The FM FTP_COMMAND doesn't work because the command chmod is not available through ftp. If I use this, I receipt the message "502 SITE command is not implemented".
    Somebody have another idea to change the Unix file attributes in a remote way from ABAP?
    Best regards!

    Hi Roberto,
    Look at the below BLOG, this explaines about the Commands which we use in FTP ..
    /people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap
    Regards
    Sudheer

  • Reverse engineering in UNIX file server.

    Good day everyone,
    I am required to reverse engineer .csv files stored in a UNIX file server. I am really new in using ODI so I'm having problems doing this menial task.
    So far, these are the steps I have done:
    1. Inserted a File Data Server and a Physical schema to setup the connection and the define the path/directory
    2. Created a File logical Schema
    3. Context defined
    4. Made a new model
    As for creating the datastore, when I clicked the browse button to look for the file it gave me this error "The directory <path file> specified in your schema does not exist.
    I appreciate any response to thread and thank you in advance!

    Sutirtha,
    I am also looking to reverse engineer from the unix server and looking for a solution. As suggested by you ,
    If your files are on a remote File System, you will need to copy one of your files to the machine ODI Designer is running on to allow ODI to retrieve the metadata information of the file.
    i have copied the same in one of the networked drives.
    Then define the File Datastore in ODI Designer. Once that is done , right click on the File Datastore select View Data, if you can view data, that means the File Datastore has been defined correctly.
    I have created the datastore which points to this networked drive.. and i can see this from networked drive from the designer..when i click the resource name button
    Once View Data is successful, you now change the directories (Data and Work Schema in Topology) to point at the remote File System. These directories must be accessible to the ODI Agent that will be used to run the transformations. The directory can be an absolute path (m:/public/data/files) or relative to the ODI Agent start up directory (../demo/files).
    here, do you want me to the change the directory to the remote unix server(??). when i do that and click on the resource name it fails..
    however, when eventhough the user id and password refers to the remote server and when i test for connection using my local agent and my development agent , the test is successful..
    please suggest..

  • Import m4v and Unix files

    A client has given me two types of files to edit with in Final Cut v.7 the first is an old promo in m4v format and the second is raw footage in Unix Executable File. I am unfamiliar with both. Do I need to convert these files to something FC can use. If so, HOW? please be detailed.
    Thanks,
    Paul

    The m4v can be converted using Compressor. The Unix file is more of a problem. See if you can fnd something that opens it. Try the QT player first. If not you'll need to get it in a proper video format.
    Can't tell you what to convert it to without knowing complete and exact specifications of the media.

  • Appleworks 5 files won't work with Pages, appearing as UNIX files

    I realize Pages will not open Appleworks 5 files. However, for some reason, when I copied my Appleworks 5 files onto a hard drive and put them on my PPC G4 iBook running OS 10.4, the icons for the files are appearing as unix executable files. I had no problem opening 5 files with 6 and did so every time I opened one. I would save them as version 6 (to upgrade the file) as suggested. But, the files that were copied from my old G3 to the G4 using the hard drive to move them, are now unable to open on the G4 using even Appleworks 6.
    I had planned to open them in 6, convert them to 6, then open them in Pages.
    This is why people hate Microsoft and Apple is doing the same nonsense. It's bad enough to buy a brand new imac that doesn't have a Superdrive. Why put an SD card reader on the ports while leaving off useful things like the drive, or minimally a Firewire 400 or 800 port. That aside, I had no idea their own proprietary software (Pages) would be designed to not work with Appleworks 5. This is why someone can get away with refusing to use Microsoft Office, or should be the reason.
    Why are these files showing up as Unix files and cannot be opened even with Appleworks 6???
    Any advice?

    Unix assumes any file without an extension is an executable file. the Classic (pre OS X) Mac OS did not use extensions/suffixes, but depended on internal Creator and Type codes to identify the application associated with a particular file. Unix (including OS X) does not recognize these codes, and requires an extension.
    For AppleWorks, the extension is .cwk.
    Add that extension to your AW5 filenames and they should open in AW6.
    As for the dropping of the Superdrive, this seems to be just the most recent step in pushing the Mac into the present. The first second was dropping the 3 1/2" floppy drive from the original iMac. Prior to that, the first Mac had a 3 1/2 inch floppy, but not the 5 1/4 inch version used earlier on the Apple ][ series. Have you had need to use a floppy recently?
    Regards,
    Barry

  • Open API App (Windows based) fails to open FMB on Unix file system

    My Open API, Windows based app, can successfully open and 'get' properties of FMBs stored in the Windows file system. However, it fails to load the FMB when the FMB resides on a networked Unix server. The same FMBs on Unix can be opened by the Windows based FormBuilder (over the network). I can copy the FMB down to Windows and without re-compiling the FMB, my Open API app can 'load' the FMB and 'get' all the properties. What suggestions can you give for debugging / resolving this? I need to be able to 'Load' the FMBs (through the Open API), that reside in the Unix file system, from Windows.
    JJ

    Generally, this is why we will tell you that accessing net shares is not supported and in places where it might even be supported, we would still suggest that it is not recommended. Accessing via net shares (especially through Windows) is often problematic. There are various performance and connectivity issues that, unfortunately fool you into believing that the product you are using is flawed when the problem is really a connection issue with the share.
    In your case, because you are not exactly using an Oracle product (initially), Oracle can't offer much anyway, but I would recommend against using shares whenever possible. If you need to access a file, copy it locally first, perform whatever task on it, then return the updated file to its origin. This method protects you from things like net failure and instability as well as the performance issues associated with accessing files remotely.

  • Why won't my PHOTOS appear when move from OS( to OSX? Get Unix files!

    This is the problem with keeping photos electronically. I copied a number of jpeg photos from my G4 OS 9.2 to my G4 Dual OSX via SanDisk and they all appear in the desktop as Unix files! Are they worthless?

    Hi Studedot,
    no, they are not useless. First try to double-click one. Does it open? Does it open in the correct program?
    Click any photo and type Apple-i to get the information window. In the lowest third of the window you can see a pop-up menu called "Open with". Select the desired application and finally click "Apply to all".
    From now on the icon should be o.k. and they should open with the assigned application.
    If this answered your question please consider granting some stars: Why reward points?

  • OSX Lion fonts show up as unix files

    We have a brand new iMac with Lion pre-installed. When trying to install our fonts, a lot of them show up as unix files. Mostly Postscript Type 1 fonts like:
    Zapf Chancery
    Friz Quadrata
    Souvenier
    Avant Garde
    Interstate
    Revue
    Berkley Old Style
    Impact
    Garamond 3
    When trying to replace these fonts with ones that are working, like OpenType, in InDesign CS5.5, words in text boxes completely disappear, making it impossible to select the words and change the font. We have hundreds of InDesign files with small advertisements, which we need to replace fonts on. I would say each InDesign file contains about 30 different fonts being used, creating a big headache! Is there a solution out there for postscript type 1 fonts in Lion??
    We have tried FontBook, a Font Server (Universal Type), and installing directly to the Library>Fonts folder.

    Could it be a compatibility issue with the Intel chip? I would think not, but this is unexplainable.
    Correct. The CPU doesn't have anything to do with it. There have been other posts here though with people having trouble with fonts on the new Macs.
    That said, there isn't (shouldn't be) any problem with fonts on an Intel based Mac. Are you keeping the Type 1 PS fonts together? That is, the suitcase of screen fonts and printer outline fonts in the same folder? It's required for those types of fonts in order for them to work.
    And one other thing. If you try and copy them over while they are active (in a Fonts folder) on the other Mac, that won't work either. Make copies of them on the source Mac first to a dummy folder that is not inside any of the Fonts folder. The desktop will do. Then copy those duplicates over.

  • FTP Uploading Hidden Unix Files Fails

    This problem has existed every since I first tried to upload files on a Mac via FTP (at least to my linux webserver).
    It seems the hidden unix files used for indexing (or something) ( ie: ._ ) and exist for each file on the hard drive are the problem.
    In the past I just setup a filter on my FTP client to omit those files, and I've heard there is another setting on most FTP clients that will solve the problem, but I'm wondering if there is an operating system tweak I can do.
    I am trying to use the FTP client built into Adobe Lightroom, and it appears to be failing for the same reason, but I don't have any options to set that will fix it.
    Thanks a lot,
    DiFFeReN7

    On a Mac, I've tried CuteFTP, a free Mac FTP client
    and now the FTP client built into Adobe Lightroom.
    On a PC, I've tried CuteFTP, FlashFXP, FileZilla, and
    maybe another.
    On every single one I had to filter out those files.
    Unfortunately, Lightroom does not have that
    capability.
    I typically use ftp or sftp on the Mac and the same tools (via Cygwin) on the PC. There is also a nice open-source GUI for the Mac called Cyberduck.
    Still, I don't really understand your problem. I haven't had any such problems on a Mac since MacOS X.
    Yes, because Macs are not set to view hidden files.
    In unix, a period . before a filename makes it
    hidden.
    If I wanted to see them I would use the TinkerTool to
    display them.
    No. On a Mac, these ._ files simply do not exist. They are part of the HFS+ file system. You still have a few "traditionally hidden" files like ".DS_Store" and ".Trashes" but the "._" files are different beasts altogether.
    The only time you will ever notice these files is if you use access a non-Mac server such as Samba, WebDAV, or NFS on your Mac. Then, your Mac will try to "pretend" it really has an HFS+ file ssytem and create all those "._" files. All the other operating systems will be able to see them and their users will probably complain about Mac users messing up the servers. On a Mac, from the Finder, they will be hidden. On a Mac, using the terminal, you will be able to see them.
    These files might also appear when you create a Zip or Tar archive on your Mac. In these situations, the Mac tries to archive "all" the information and will create the "._" inside the Zip or Tar file. I have an older version of Tar that I keep around so that it won't do this.
    Are you trying to upload to an FTP server on a Mac? I have to tell you, I have never experienced any sort of problem like this. What you describe doesn't make any sense. You also say that it chokes on "._" files from you upload from a PC. Those "._" shouldn't exist on a PC. I'm really confused.
    Perhaps you should try Cyberduck or sftp.

Maybe you are looking for