Blank at the end of file
Hi,
i must generate a text file with the following rule : each field of a record have a delimited size ; my problem is that by the end of the file the last field is truncated, there is no blank.
Just a example :
DATA: begin of struc_t,
name type char20,
surname type char20,
end of struc_t.
struct_t-name = 'MYNAME'.
struct_t-surname = 'MYSURNAME'.
After TRANSFER call, the file is like :
MYNAME MYSURNAME
represent the end of file, and i would like to have 11 blanks like this :
MYNAME MYSURNAME
So what can i do ?
Cheers.
how did you transfer to the dataset, do it using OFFSETS
data : TRANSFER_STRUCTURE(500).
TRANSFER struct_t-name to TRANSFER_STRUCTURE+0(15).
TRANSFER struct_t-surname to TRANSFER_STRUCTURE+16(25).
Similar Messages
-
Blank Lines at end of file when using Variable Substitution in File Adapter
Hi all,
I'm using variable substitution in a File Adapter, it's refers an element of message, like:
filename payload:MESSAGE_INTERFACE,1,FILENAME,1
The variable substitution is working right, but it's append a BLANK LINE at end of file.
Anyone knows how to solve this problem ?
Thanks in advance.Hi Regis,
I suppose you're using content conversion?
if so try adding
<b>endSeparator</b> = '0'
to your last element
this will delete the default line break at the end
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a> -
im currently running logic pro 7 academic on my g5--"the end of file reached" pop up occured (i think it was error code 43) and it said something about preferences i accidently hit the save button and i guess it saved the preferences(since then it has not popped up again)--i cannot hear anything from any of my files--all i am able to is basically look at the arrange window with 4 audio tracks and tracks from my keyboard---when i try to create audio instruments a pop up says "no more tracks available"--ive reloaded both of the logic discs and still am unable to get anything to work
OK, that's quite a lot in one go...and you have deadlines..let's see if we can clear things up?
You say you cannot hear anything...Have you ever had output coming out of Logic or is this your first try? If you can't hear anything, how on earth are you recording?
(I take it the "end of file" message shows up while recording?)
Are you using an audio interface or running straight out of the G5's internal audio card?
I've never had that "end of file" message but I suspect it can have something to do with the maximum recording time.
You set it under the Audio menue/Set Audio Record Path (Apple/A)
Now, to the Tracks:
Have you ever run the Set-Up Assistant (Logic Pro menue/Preferences/Logic Set-Up Assistant)? If not, I recommend you do. Here you can set the framework for your Audio Environment, How many tracks, busses etc.
Sorry if this is too basic for you, i'ts hard to tell how deep in to the application you are.
Good Luck,
Erik -
How to hard code a records at the end of file
Hello experts,
I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
For example with IDOC to File,the o/p file like
1 name number sal
2 name number sal
3 name number sal
But my expected file is
1 name number sal
2 name number sal
3 name number sal
1 abc 123 2345676
2 bdc 234 11111111
3 aaa 123 11111111
4 fffff 567 33333333
Every time these 4 records are common.How can i hard code the last 4 records in XI.
could u plz help me in this.Thanks in advance.
Regards,
KPHi,
Hope u are doing File Content Conversion in ur receiver adapter.
Lets assume that u have structure like below
-Record
-RecordSet
X
Y
Z
Add one more Recordset like for Trailer records
-Record
-RecordSet
X
Y
Z
-TrailerRecordSet
Trailer
In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
In ur Receiver communication channel add the TrailerRecordSet also...
RecordSetStructure: RecordSet,TrailerRecordSet
TrailerRecordSet.fieldSeparator -
'0'
TrailerRecordSet.endSeparator -
'0'
RecordSet Parameters....
Regards,
Sudharshan -
Which version of Reader 9 (if any) has the End of File button?
I sell CDs containing over 100 linked pdf files created in InDesign 4. The CDs also contain version 6 of Reader for navigating the bookmarks and links in the pdf files. The disc contains a Tutorial.pdf file with navigation instructions. These refer to the navigation buttons visible in Reader 6 and make extensive use of the End of File button (green with a white left pointing arrow) as a quick means of getting back to the Start file which is the portal to all the others.. Some owners who have Reader 9 installed say that the End of File button is not displayed on their screen. This has come from owners using XP, Vista and Win 7. Is there a version of Reader 9 for Windows that retains this button, please?
What you are referring to is the First Page and Last Page buttons: "|<" and ">|" respectively. These can be found by right-clicking on an empty part of the File toolbar and navigating to "Page Navigation Toolbar" in the More Tools pop-up-window. They are not check-marked by default which is why they don't display. The user can turn them on by placing a checkmark next to those icons in the pop-up window for "More Tools"
-
Help with "The end of file was reached" error message in Outlook 2011
Hello, I am having an issue with Outlook 2011 that after 24 hours or so I am getting a “The end of file was reached” error message code -17895.
Right after this error I get a disconnected from Exchange server and even after re opening the client it stays like this for about 5 minutes then restores. Has anyone else seen this error? I am able to reproduce this on multiple machines with multiple Exchange
2010 mailbox accounts.Same situation here:
Outlook 2011 for Mac using Office 365, 3 users have reported the End of File Reached error when trying to send email.
I have logged a ticket with Microsoft support and they have followed up with the following directions.
1.
Repair Disc Permissions On A Mac
o
1
Log in to your computer with the administrative account. Open the hard drive, go into the "Applications" folder and then open the "Utilities" folder. Now launch the Disc Utility application.
o
2
Select your main hard drive. You'll probably see two options--one is the manufacturer's name of the disc and the other name is what you've called it. Choose the name of your hard drive.
o
3
Click on "Verify Disc Permissions" and the computer will perform a diagnostic test. After a few minutes, the problems with disk permissions will be reported in the Disc Utility window.
Click on "Repair Disc Permissions" to fix them.
o
4
Insert your Mac OS X installation disk and restart your computer. Hold down the "C" key on your keyboard to boot from the disk rather than your computer's hard drive. Cancel the OS
installation and open Disc Utility.
o
5
Click on "Verify" to have Disc Utility check your computer's hardware. Notice that this option is only available when the program is run from the CD. You can only test the hardware
of a computer that isn't running the program locally.
o
6
Use Disc Utility to try and repair any hardware errors that it detects. Usually fixing the permissions will be enough to maintain your computer. If you still experience frequent lockups
and crashes, then you should try repairing it with this method.
Tips & Warnings
If you use your computer for high-performance work, such as software compiling or video editing, then you may want to check the permissions weekly. Most computer users will only need
to fix permissions after noticing problems with applications or the operating system.
If the computer's performance does not improve after repairing permissions, then you'll have to troubleshoot for other issues. You may want to purchase more RAM for your computer to
help speed it up.
Permissions repairs will not correct problems caused by applications that did not use Apple's installer. Try deleting all files associated with the application and then reinstalling
it.
Avoid repairing the permissions after you've booted the computer from the OS X CD. It won't cause problems to your drive, but the version of "Disc Utility" on the CD may not be updated
to address permission changes that are required by certain software updates.
Secondly, the information for repairing an Outlook 2011 database is as follows:
http://support.microsoft.com/kb/2360509 -
INPUT THE END-OF-FILE CHARACTER/ CRTL-C in Jdeveloper
I'm trynta input the end-of-file character in the program input window (JDeveloper) so i can exit the while loop below. The window accepts all other characters except the CTRL-C character sequence in windows. How does the user exit this loop?
while (input.hasNext()) { //loop until EOF character
try {
//retrieve data to be input
record.setAccount(input.nextInt());
record.setFirstName(input.next());
record.setLastName(input.next());
record.setBalance(input.nextDouble());
if (record.getAccount() > 0) {
output.format("%d %s %s %.2f\n", record.getAccount(),
record.getFirstName(), record.getLastName(),
record.getBalance());
} else {
System.out.println("Account number must be greater than 0");
} //end try
catch (FormatterClosedException e) {
System.err.println("Error writing to file.");
return;
} catch (NoSuchElementException e) {
System.err.println("Invlaid input. Please try again.");
input.nextLine();
System.out.printf("%s %s\n%s", "Enter account number (>0), ",
"first name, last name, and balance.", "? ");
} //end while
//...Hi,
U need to use one class. Refer below given code.
TYPES : BEGIN OF lt_record_input,
rec(1000) TYPE c,
END OF lt_record_input.
DATA : li_record_input TYPE TABLE OF lt_record_input .
DATA lv_cr TYPE c.
lv_cr = cl_abap_char_utilities=>cr_lf.
CONCATENATE '/opt/isv/cti_app/DOCU/INCOMING/PROCESSED/UNSUCCESSFUL/'
gv_filename INTO lv_path.
OPEN DATASET lv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
READ DATASET lv_path INTO lw_record_input-rec.
IF sy-subrc EQ 0.
REPLACE lv_cr IN lw_record_input-rec WITH space.
APPEND lw_record_input TO li_record_input.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET lv_path.
ENDIF.
Hope it help u. -
SOLUTION: Dealing with the 'end of file' error
Adobe have not only failed to fix the constant 'end of file' error after 6 versions but also, even worse, failed to make the error in any way useful. If you get this error when building a complex project, you have to completely rebuild your project to find the cause. This is a huge issue when dealing with projects like the one I'm currently doing: 7 different discs (projects), each with about 20 timelines.
A simple 'end of file: NAME OF FILE' in the error message would solve this.
However, luckily (as I would have otherwise killed myself by now), I have found a much quicker way of finding problematic files. This is the Windows solution, but hopefully there's an equivelant Mac way of doing it.
Get Process Monitor from here.
Run it, and hit the Filter button on the toolbar.
Add filters for:
Process Name is Adobe Encore.exe
Operation is ReadFile
Go start your build process
When the 'end of file' message appears, switch over to Process Monitor and scroll down to the bottom
Scroll up until you see the last time a file of yours was accessed
There's your culprit
The actual problem with the file usually seems related to Encore not dealing with externally created files very well. Import a non-DVD/blu-ray ready copy of your video and transcode it internally, that seems to fix it.
Adobe needs to stop work on every new feature or bugfix for Encore, and fix the error messages. Bugs are inevitable, but not having adequate error messages or logging so the bugs can be worked around is unforgiveable. It's a simple matter and should be fixed immediately.Here is where you tell Adobe about bugs, and also where you ask for new features
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform -
May I run "shrink DB/truncate free space from the end of file" at PROD?
We have a SAP/MSS production system.
The disk is full.
We want to truncate the log file by:
"shrink DB/truncate free space from the end of file"
on the log file.
How risk is it? Can we do it during production is running?
Thanks! Points!Backup the log file (to save the data and keep a consistent backup) Then shrink the file. Its normal for the log not to shrink down to the size you want. Do not shrink past 1GB.
DO NOT TRUNCATE - you are losing/dropping data and recovery will only be possible to the last on-line, or on-line plus last log/s.
You can avoid a full log file by setting a 9002 trap - this will trigger a backup (like oraarch when you back up based on % full). Else you need to change the frequency of the backups for the logs to ensure the system never fills ups.
You can Also add a second log file on a separate F/S if this occurs regular - which it shouldn't if you have a correct backup strategy. -
Extra line at the end of file when transferred from XI to FTP.
Hi All,
Need help regarding the below query.
I have an inbound structure with the below format
MT_RAVE_L 1..1 (is the main node)
Logistic Info 1..Unbounded (this is the structure under the main node)
LOGSOPTUN 1..1 (this is below Logistic Info field)
File_Name 1..1 ( This is also below main node with the same level of Logistic Info structure)
(Tried to insert a pic of the mapping but was unsuccesful)
We are trying to move a file from XI to FTP. the file is being created in FTP succesfully but an extra blank line is being inserted at the end of the file.
After lot of investigation we could trace the it is because of the File_Name field data is being not moved to inbound file.( Here we are using the File_Name field data for creating a file name in FTP. i.e., the File_Name is the File name under which our data is being stored in FTP and that is the reason we are not using File_Name in Content Conversion)
Can you please suggest ways so that the empty line is not created.
Thanks in advance
LRK.Hello,
Have you set the property in File adapter lastFieldOptional.
Thanks and Regards
Hemant -
File receiver : blank line at end of file
Dear friends,
we are using file receiver with file content conversion , tp : FTP
The file has a flat structure & fixed length (no delimiters) :
reordset parameters used- fieldFixedLengths
each record is in a different line, but at the end of the records a blank line is inserted.
(no endSeparator is used.)
Can you pls advise hot to get rid of this extra blank lineHi Datta,
I am not sure but you can try with follwing parameters...
NameA.fixedLengthTooShortHandling Specify how you want the system to respond when column widths in the actual document exceed those defined in NameA.fieldFixedLengths. The following values are permitted:
· Error
Error means that processing of the document is terminated.
· Cut
Cut means that a value is shortened to the maximum permitted length.
· Ignore
Ignore means that the system applies the value completely, regardless of it being too long. Subsequent columns are moved correspondingly.
U can use ignore in your case.
For more info. plz check
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
Regards
Sachin -
How to append contents to an existing file contents at the end of file?
Hi all
I am Kiran, working with LV8.0 FDS
I find difficulty while trying to add new file contents(some messages) to an existing file at the end /begining of a file.
Whenever i try to do that,it is replacing the previous contents,but i dont need that. i want the contents to be appended.
Plz suggest me.
thanks & regards
kiranHi Kiran,
yes, I can attach a screenshot
(open file, set file position to end, write text, close file)
Message Edited by GerdW on 08-16-2007 03:19 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
append.png 2 KB -
Character # at the end of file in transaction AL11
Hi gurus,
In version 46c if I upload a file to application server with program RC1TCG3Z and in mode BIN when I display the file with transaction AL11 the file is correct.
In version 60 if I upload a file to application server with the same program and in mode BIN when I display the file with transaction AL11 appears character # at the end of some lines. How it is possible?
Thanks,Hi,
U need to use one class. Refer below given code.
TYPES : BEGIN OF lt_record_input,
rec(1000) TYPE c,
END OF lt_record_input.
DATA : li_record_input TYPE TABLE OF lt_record_input .
DATA lv_cr TYPE c.
lv_cr = cl_abap_char_utilities=>cr_lf.
CONCATENATE '/opt/isv/cti_app/DOCU/INCOMING/PROCESSED/UNSUCCESSFUL/'
gv_filename INTO lv_path.
OPEN DATASET lv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
READ DATASET lv_path INTO lw_record_input-rec.
IF sy-subrc EQ 0.
REPLACE lv_cr IN lw_record_input-rec WITH space.
APPEND lw_record_input TO li_record_input.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET lv_path.
ENDIF.
Hope it help u. -
Add Counter at the end of file name
Hi all,
I am using NFS protocol and trying to add counter at the end of the file. I have given the Prefix as '-'
Format : 1
Step: 1
Mode: After First File
Is the prefix is right? Am i giving the values in right way? Please help me.
The format required is: test_1.xml
Thanks,
SriHI Arun,
I m not so sure but i think prefix can not have any special character.
You can do this by giving your file name in target->file name schema as File_* while configuring your communication channel.
After that it will add automatically your required counter.
thanks. -
[ODI] Insert EOF at the end of file
Hello everybody,
I need you help for finish my project.
Since two days, i try to insert the code "EOF" at the end of the file. This file is provisioned by an ODI interface. I tried to modify the datastore options but it doesn't work.
Many thanks,Hi,
A jython script can do that.
Create a new procedure and select Jython as technology. Then try this code:
with open("/home/myuser/myfile.txt", "a") as f:
f.write("EOF")
f.close()"a" parameter of open is for "append".
Regards,
JeromeFr
Maybe you are looking for
-
I have a Dell Inspiron 1545 and I can't download Adobe flash or Adobe acrobat reader, when I try to play my games it says update flash and when I try to download it the screen comes up blank
-
Unable to change default font in Themes
I have been trying unsuccessfully to change the default font in a theme. When I change the font in one of the master slides and click the Format/Advanced menu item, the "Save as Default for Current Theme" is grayed out, as all all the other options i
-
This has been driving me crazy for a while now. Mainly because I solved this once for myself earlier this year! I cannot find the solution again and I need help. Two Snow Leopard clients I have, (10.6.6) are returning three IP addresses in DNS. O
-
Cannot access newly installed Bridge CC
Windows 7 PC: Tried to install Photoshop CC and Bridge CC to a drive other than C; Access problems: Advised by Adobe that I must install to C: After fitting larger C drive I finally managed to access Photoshop by uninstalling and then reinstalling it
-
RRI Jump Target Issue, IMP
How do I jump from one query to another with a set of values. I want a query to run for a set of all customers for a specific customer group from 0cust_sales. I tried both options using InfoObject and Variable and different options in selection type(