05-18-2007
So how to handle this issue becasue these files needs to be pickedup from the same location by SAP XI
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
We receive a file with a large no of records (records can vary) and we have to split it into two files based on another file. e.g.
File1:
UHDR 2008112
"25187","00000022","00",21-APR-1991,"" ,"D",-000000519,+0000000000,"C", ,+000000000,+000000000,000000000,"2","" ,21-APR-1991... (7 Replies)
Discussion started by: er_ashu
7 Replies
2. Shell Programming and Scripting
Hi,
I have one file with the following details,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Account_Id Date Id Balance
44 9 1000.00 30 15-10-2173 10 1000.00 42 15-10-2173 10 1200.00 53 01-01-2008 10 1200.00
I need to split up the values in to the respective fields as follows,
... (7 Replies)
Discussion started by: Kattoor
7 Replies
3. Shell Programming and Scripting
I have an input file with contents like:
MainFile.dat:
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
12247689|7896|77698080
16768900|hh78|78959390
... (4 Replies)
Discussion started by: rkrish
4 Replies
4. Shell Programming and Scripting
Hi,
I have a file (named as values) which contains around 10 columns with an unique number in the first column. I wanted to segregate the file into 10 files based on the range of the Unique number. It varies from 0 to 10 Million. So, I need to split the file into 10 files with ranges from 0 to... (8 Replies)
Discussion started by: b@l@ji
8 Replies
5. Shell Programming and Scripting
Hi All,
I have more than half million lines of XML file , wanted to split in four files in a such a way that top 7 lines should be present in each file on top and bottom line of should be present in each file at bottom.
from the 8th line actual record starts and each record contains 15 lines... (14 Replies)
Discussion started by: ajju
14 Replies
6. Shell Programming and Scripting
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
trl=$(cut -c|path$file|tail -1)#extract trailer “T”
SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name
If; then # start loop if it is a header
While read I #read file
Do... (4 Replies)
Discussion started by: SwagatikaP1
4 Replies
7. Shell Programming and Scripting
more a-d.txt1
<a-dets>
<a-serv>
<aserv>mymac14,mymac15:MYAPP:mydom:/web/domain/mydom/config
<NMGR>:MYAPP:/web/bea_apps/perf/NMGR/NMGR1034
<a-rep-string>
11.12.10.01=192.10.00.26
10.20.18.10=192.10.00.27
</a-rep-string>
</a-serv>
<w-serv>... (2 Replies)
Discussion started by: mohtashims
2 Replies
8. Shell Programming and Scripting
Hi Forum.
I have the following script that splits a large fixed-width file into smaller multiple fixed-width files based on input segment type.
The main command in the script is:
awk -v search_col_pos=$search_col_pos -v search_str_len=$search_str_len -v segment_type="$segment_type"... (8 Replies)
Discussion started by: pchang
8 Replies
9. Shell Programming and Scripting
Hello,
I have some large text files that look like,
putrescine
Mrv1583 01041713302D
6 5 0 0 0 0 999 V2000
2.0928 -0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
5.6650 0.2063 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
3.5217 ... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
10. UNIX for Beginners Questions & Answers
Hi ,
I am having a scenario where I need to split the file based on two field values. The file is a fixed length file.
ex:
AA0998703000000000000190510095350019500010005101980301
K 0998703000000000000190510095351019500020005101480 ... (4 Replies)
Discussion started by: saj
4 Replies
LEARN ABOUT SUNOS
llc2_loop
llc2_loop(1M) System Administration Commands llc2_loop(1M)
NAME
llc2_loop - loopback diagnostics to test the driver, adapter and network.
SYNOPSIS
/usr/lib/llc2/llc2_loop2 [-v] ppa
/usr/lib/llc2/llc2_loop3 ppa sap frames
/usr/lib/llc2/llc2_loop3 ppa type frames
/usr/lib/llc2/llc2_loop4 [-v] ppa
DESCRIPTION
Loop 2
The loop2 test sends a NULL XID frame to the broadcast (all 1's) destination MAC address. The source SAP (Service Access Point) value used
is 0x04 (SNA's SAP). Therefore, if SNA is running on the system, the loop2 test will fail. The destination SAP value is the NULL SAP(0x00). This test finds out who is listening and can receive frames sent out from a node. The verbose (-v) option displays the MAC address
of responding nodes. All possible responders may not be displayed, since the loop2 test only waits for responses for 2 seconds, but during
this time 50-200 nodes may be displayed. The most likely error is:
Unexpected DLPI primitive x, expected y.
where x = 5 and y = 6. From /usr/include/sys/dlpi.h, the expected return value from one of the DLPI primitives is 6 (DL_OK_ACK), but
instead a 5 (DL_ERROR_ACK) was received. This can occur for two reasons:
o The loop2 command was issued to a non-existent PPA (Physical Point of Attachment).
o The SAP(0x04) is already in use (for example, the SNA subsystem is up).
Loop 3
The loop3 test sends 1,495 byte Unnumbered Information (UI) frames to the NULL (all 0's) destination MAC address. This should be used
along with data capture either on the local node or another node on the same LAN to verify the transmission of data. The ppa argument spec-
ifies the adapter on which to run the test. The ppa is the relative physical position of the adapter and may be ascertained by viewing
the adapter configuration (see llc2_config(1)). For Token Ring or Ethernet, specify an even sap value from 2 through 254, or, for Ethernet
only, any type value from 1519(0x05ef) through 65535(0xffff). It is advised to pick a value that is easily recognized when the data cap-
ture output is viewed.
frames is the decimal number of 1,495 bytes packets to transmit. The test will only display a message if a failure occurs.
Loop 4
The loop4 test sends a TEST frame (no information field) to the broadcast (all 1's) destination MAC address. The source SAP value used is
0x04 (SNA's SAP). Therefore, if SNA is running on the system, the loop4 test will fail. The destination SAP value is the NULL SAP(0x00).
This test finds out who is listening and can receive frames sent out from a node. The verbose (-v) option displays the MAC address of
responding nodes. All possible responders may not be displayed since the loop4 test only waits for responses for 2 seconds, but during
this time 50-200 nodes may be displayed. The loop4 test displays information similar to the following example if other nodes are listening
and respond (verbose mode):
-Attaching
-Binding
-Sending TEST
-Responders
1-0000c0c12449
2-08000e142990
3-08000e142a51
4-0000c0450044
5-0000c0199e46
-Unbinding
-Detaching
5 nodes responding
The errors displayed are the same as for loop2.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWllc |
+-----------------------------+-----------------------------+
SEE ALSO
llc2_config(1), llc2(4), attributes(5), llc2(7D)
NOTES
For information about how to start the service, see llc2(7D)
SunOS 5.10 18 May 1999 llc2_loop(1M)