= Split line.
SPLit {CONT | OVER | ALL | EXP | TAIL} [SBCS] [TOL]
[STRDELM|STRSPACE] [OOM] [SPACE1]
[width] [CRLF] ["str"] [.lab1 .lab2]
-CONT:process long lines split by the width of /M option
of EDIt cmd.
-OVER:additional to CONT, process long lines of
line-length>width-of-parm.
If "str"(delimiter) option specified,the long line is
split by the delimiter at the nearest to the width.
-ALL :process all lines. Default.
Split line by delimiter char in the "str" and width.
Differently with CONT,short line is joined up to the with
checking delimiter.
If width parm is missing,width of /M parm of Edit
/Browse cmd is used.
If "str" parm is missing,line is split by just
the width. In the case DBCS is split by width,
both byte is shifted to the next line unless SBCS option
specified.
If both of width parm and /M parm missing,
line is split simply by all delm char or delm string.
-EXP :"str" char is padded to end of the line up to the width.
-TAIL:Chars in the "str"(default is " ") is removed from end of the line.
With width parm, removed up to the width even if no char to be deleted found.
If multiple char is specified on "str" option,
all char in the string is deleted from End Of Line.
-SBCS:No consideration to DBCS on width boundary.
This is always true for binary opened file.
-TOL :split line with delimiter at top of line.
-STRDELM:str parm is not delimiter characters but a string.
-STRSPACE:Split only once even when space is continued.
It is assumed "str" contains space when this
option specified.
-SPACE1 :Shrink continued spaces to a space.(with ALL/OCER option)
-OOM :width TAIL option,Ignore Bounds/Margin setting.
-width:specify new width except for the type CONT.
Tab is replaced to spaces of currently expanded column width
when the line is moved to the previous line.
To change display width of binary file simply enter
like as "SPL 100". Binary file display width can be
changed by this cmd even when browse mode.
-CRLF :Split lines by width parameter and CRLF.
Split type is assumed as ALL.
CRLF is not inserted after the split lines.
Use to change display width of text file.
-str :delimiters. enclose by quotation.
For EXT option,padding char if "str" is 1 byte ASCII,
EndOfStatement and padding char if 2byte "str",
EndOfStatement+padding+EndOfLine if 3 byte "str".
Hex notation is available like as \x0d.
Multiple character like as \x8140 is allowed but
no DBCS consideration.
In this case this is treated as 2 SBCS character is specified.
-.lab1/2:line range correspond to label on lineno column.
(ex.01) ALL(Default) option.
===>spl 20
col |....+....1....+....2....+....3....+....4
*******|********** TOP OF FILE *****************
0001000|aaaaaaaaaaaaaaaaaa AAAAAAAAAAAAAAAAAAAAA
0002000|bbbbbbbbbbbbbbbbbbb BBBBBBBBBBBBBBBBBBBA
0003000|cccccccccccccccccccc CCCCCCCCCCCCCCCCCCA
0004000|dddddddddddddddddddddDDDDDDDDDDDDDDDDDDA
0005000|eeeeeeeeeeeeeeeeeeeeee EEEEEEEEEEEEEEEEA
0006000| FF
==>simply cram to the width if no "str" specified.
No space is inserted between each lines,it is different from TF command.
col |....+....1....+....2
*******|********** TOP OF FI
0001000*aaaaaaaaaaaaaaaaaa A
0001100*AAAAAAAAAAAAAAAAAAAA
0002000*bbbbbbbbbbbbbbbbbbb
0002100*BBBBBBBBBBBBBBBBBBBA
0003000*cccccccccccccccccccc
0003100* CCCCCCCCCCCCCCCCCCA
0004000*dddddddddddddddddddd
0004100*dDDDDDDDDDDDDDDDDDDA
0005000*eeeeeeeeeeeeeeeeeeee
0005100*ee EEEEEEEEEEEEEEEEA
0006000| FF
(ex.02) OVER option.
===>spl over 50
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+...10
*******|********** TOP OF FILE *****************************************************************************
0001000*time event-type action-before ,time event-type action-after
0002000*10:11:12.555 aaaa01 bbbbbbbbbb ,10:11:12.555 AAAA02 BBBBBBBBBB
0003000*10:11:12.555 aaaa03 bbbbbbbbbb ,10:11:12.555 AAAA04 BBBBBBBBBB
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC,
0005000*10:11:12.555 aaaa07 bbbbbbbbbb ,10:11:12.555 AAAA08 BBBBBBBBBB
==>the line longer than the width is split.
col |....+....1....+....2....+....3....+....4....+....5
*******|********** TOP OF FILE ***************************
0001000*time event-type action-before ,
0001100*time event-type action-after
0002000*10:11:12.555 aaaa01 bbbbbbbbbb ,
0002100*10:11:12.555 AAAA02 BBBBBBBBBB
0003000*10:11:12.555 aaaa03 bbbbbbbbbb ,
0003100*10:11:12.555 AAAA04 BBBBBBBBBB
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC,
0005000*10:11:12.555 aaaa07 bbbbbbbbbb ,
0006000*10:11:12.555 AAAA08 BBBBBBBBBB
(ex.03) CONT option.
===>e x2sv m50 (width parameter is also specified)
===>spl cont
col |....+....1....+....2....+....3....+....4....+....5....+....6
*******|********** TOP OF FILE ****************************
0001000-time event-type action-before ,
0001001.time event-type action-after
0002000-10:11:12.555 aaaa01 bbbbbbbbbb ,
0002001.10:11:12.555 AAAA02 BBBBBBBBBB
0003000-10:11:12.555 aaaa03 bbbbbbbbbb ,
0003001.10:11:12.555 AAAA04 BBBBBBBBBB
0004000|10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC,
0005000-10:11:12.555 aaaa07 bbbbbbbbbb ,
0005001.10:11:12.555 AAAA08 BBBBBBBBBB
==>split line id on the column between lineno field and text field was changed.
col |....+....1....+....2....+....3....+....4....+....5....+....6
*******|********** TOP OF FILE ***************************
0001000*time event-type action-before ,
0001001*time event-type action-after
0002000*10:11:12.555 aaaa01 bbbbbbbbbb ,
0002001*10:11:12.555 AAAA02 BBBBBBBBBB
0003000*10:11:12.555 aaaa03 bbbbbbbbbb ,
0003001*10:11:12.555 AAAA04 BBBBBBBBBB
0004000|10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC,
0005000*10:11:12.555 aaaa07 bbbbbbbbbb ,
0005001*10:11:12.555 AAAA08 BBBBBBBBBB
(ex.04) TAIL option.
===>spl 49 tail
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....
*******|********** TOP OF FILE ***********************************************************************
0001000|time event-type action-before ,time event-type action-after
0002000|10:11:12.555 aaaa01 bbbbbbbbbb ,10:11:12.555 AAAA02 BBBBBBBBBB
0003000|10:11:12.555 aaaa03 bbbbbbbbbb ,10:11:12.555 AAAA04 BBBBBBBBBB
0004000|10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC,
0005000|10:11:12.555 aaaa07 bbbbbbbbbb ,10:11:12.555 AAAA08 BBBBBBBBBB
==>lines are cut by the width.
col |....+....1....+....2....+....3....+....4....+....
*******|********** TOP OF FILE **************************
0001000*time event-type action-before
0002000*10:11:12.555 aaaa01 bbbbbbbbbb
0003000*10:11:12.555 aaaa03 bbbbbbbbbb
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC
0005000*10:11:12.555 aaaa07 bbbbbbbbbb
(ex.05) TAIL option for margined file.
===>spl 62 tail
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
*******|********** TOP OF FILE *********************************************************
0001000|*//*CID:**+A003R~:#63 option=(m72,n,p0,tabclear) update#= 14; 00010019
0001010|.* C R1,CLMSTART CSECT START ADDR **~A003R~ 00011020
0001020| LR R14,R1 CHK ADDR **+A003R~ 00012021
0001030| SLL R14,1 CHK ADDR 00013017
0001040| SRL R14,1 CHK ADDR 00014017
0001050| C R14,CLMSTART CSECT START ADDR 00015017
0001060| BNH UAB&SYSNDX.E LOWER ADDR(OUT OF RANGE) 00016017
0001070|* C R1,CLMEND CSECT END ADDR + 1 00017017
0001080| C R14,CLMEND CSECT END ADDR + 1 00018017
==>data on the margin remains.
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
*******|********** TOP OF FILE *********************************************************
0001000**//*CID:**+A003R~:#63 option=(m72,n,p0,tabclear) update#= 14 00010019
0001010*.* C R1,CLMSTART CSECT START ADDR 00011020
0001020* LR R14,R1 CHK ADDR 00012021
0001030| SLL R14,1 CHK ADDR 00013017
0001040| SRL R14,1 CHK ADDR 00014017
0001050| C R14,CLMSTART CSECT START ADDR 00015017
0001060| BNH UAB&SYSNDX.E LOWER ADDR(OUT OF RANGE) 00016017
0001070|* C R1,CLMEND CSECT END ADDR + 1 00017017
0001080| C R14,CLMEND CSECT END ADDR + 1 00018017
(ex.06) TAIL option for margined file, effect of OOM option.
===>spl tail 80 oom
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+...10....+...11
*******|********** TOP OF FILE ***************************************************************************************
0001000|*//*CID:**+A003R~:#63 option=(m72,n,p0,tabclear) update#= 15**~A003R~ 00010022
0002000|.* C R1,CLMSTART CSECT START ADDR **~A003R~ 00011022
0003000| LR R14,R1 CHK ADDR **+A003R~ 00012023 SLL R14,1 CHK ADDR 00013017
0004000| SRL R14,1 CHK ADDR 00014017
0005000| C R14,CLMSTART CSECT START ADDR 00015017
0006000| BNH UAB&SYSNDX.E LOWER ADDR(OUT OF RANGE) 00016017
0007000|* C R1,CLMEND CSECT END ADDR + 1 00017017
0008000| C R14,CLMEND CSECT END ADDR + 1 00018017
==>margin data was lost by OOM option.
*******|********** TOP OF FILE *********************************************************
0001000|*//*CID:**+A003R~:#63 option=(m72,n,p0,tabclear) update#= 15**~A003R~ 00010022
0002000|.* C R1,CLMSTART CSECT START ADDR **~A003R~ 00011022
0003000* LR R14,R1 CHK ADDR **+A003R~ 00012023
0004000| SRL R14,1 CHK ADDR 00014017
0005000| C R14,CLMSTART CSECT START ADDR 00015017
0006000| BNH UAB&SYSNDX.E LOWER ADDR(OUT OF RANGE) 00016017
0007000|* C R1,CLMEND CSECT END ADDR + 1 00017017
0008000| C R14,CLMEND CSECT END ADDR + 1 00018017
(ex.07) EXP option.
===>spl exp 60 ";"
col |....+....1....+....2....+....3....+....4....+....
*******|********** TOP OF FILE **************************
0001000|time event-type action-before
0002000|10:11:12.555 aaaa01 bbbbbbbbbb
0003000|10:11:12.555 aaaa03 bbbbbbbbbb
0004000|10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC
0005000|10:11:12.555 aaaa07 bbbbbbbbbb
==>expand lines up to the width. padding char was used to indicate EndOfLine by "str" parameter(default is " ").
col |....+....1....+....2....+....3....+....4....+....5....+....6
*******|********** TOP OF FILE *************************************
0001000*time event-type action-before ;;;;;;;;;;;
0002000*10:11:12.555 aaaa01 bbbbbbbbbb ;;;;;;;;;;;
0003000*10:11:12.555 aaaa03 bbbbbbbbbb ;;;;;;;;;;;
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC;;;;;;;;;;;
0005000*10:11:12.555 aaaa07 bbbbbbbbbb ;;;;;;;;;;;
==>padding char by 2 byte "str" parameter.( (after cut EndOfLine spaces by "spl tail") spl exp 60 ";+")
col |....+....1....+....2....+....3....+....4....+....5....+....6
*******|********** TOP OF FILE *************************************
0001000*time event-type action-before;++++++++++++++
0002000*10:11:12.555 aaaa01 bbbbbbbbbb;+++++++++++++++++
0003000*10:11:12.555 aaaa03 bbbbbbbbbb;+++++++++++++++++
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC;++++++++++
0005000*10:11:12.555 aaaa07 bbbbbbbbbb;+++++++++++++++++
==>padding char by 3 byte "str" parameter.(spl exp 60 ";-*")
col |....+....1....+....2....+....3....+....4....+....5....+....6
*******|********** TOP OF FILE *************************************
0001000*time event-type action-before;-------------*
0002000*10:11:12.555 aaaa01 bbbbbbbbbb;----------------*
0003000*10:11:12.555 aaaa03 bbbbbbbbbb;----------------*
0004000*10:11:12.555 aaaa05 CCCCCCCCCCCCCCCCC;---------*
0005000*10:11:12.555 aaaa07 bbbbbbbbbb;----------------*
(ex.08) effect of SPACE1 option.
===>spl space1
col |....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....
*******|********** TOP OF FILE *************************************************************
0001000| kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000| key6;=cccccc := key7 : key8
==>shrink continued space chars to one space char.
col |....+....1....+....2....+....3....+....4....+....5....+....6..
*******|********** TOP OF FILE ***************************************
0001000* kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000* key6;=cccccc := key7 : key8
(ex.09) "str" and related options.
===>spl "=;"
col |....+....1....+....2....+....3....+....4....+....5....+....6....+
*******|********** TOP OF FILE ******************************************
0001000| kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000| key6;=cccccc := key7 : key8
==>split line just after the specified delimiter chars.
col |....+....1....+....2....+
*******|********** TOP OF FILE **
0001000* kay1=
0001100*11111111;
0001200* key2=
0001300*=
0001400*=
0001500*222222222 : key3=
0001600*:333333333 key4=
0001700*;
0001800* key5
0002000* key6;
0003000*=
0004000*cccccc :=
0005000* key7 : key8
==>If width is also specified,split by delimiter just before the right boundary of the width.
===>spl "=;" 40
col |....+....1....+....2....+....3....+....4....+....5....+....6....+
*******|********** TOP OF FILE ******************************************
0001000| kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000| key6;=cccccc := key7 : key8
===>
col |....+....1....+....2....+....3....+....4
*******|********** TOP OF FILE *****************
0001000* kay1=11111111; key2===222222222 : key3=
0001100*:333333333 key4=; key5 key6;=cccccc :=
0002000* key7 : key8
==>effect of STRDELM option(spl "=;" strdelm)
col |....+....1....+....2....+....3....+....4....+....5....+..
*******|********** TOP OF FILE **********************************
0001000* kay1=11111111; key2===222222222 : key3=:333333333 key4=;
0001100* key5
0002000| key6;=cccccc := key7 : key8
==>effect of TOL option(spl "=;" strdelm tol)
col |....+....1....+....2....+....3....+....4....+....5....+
*******|********** TOP OF FILE ********************************
0001000* kay1=11111111; key2===222222222 : key3=:333333333 key4
0001100*=; key5
0002000| key6;=cccccc := key7 : key8
==>effect of STRSPACE option(spl strspace)
===>spl all " "
col |....+....1....+....2....+....3....+....4....+....5....+....6....
*******|********** TOP OF FILE *****************************************
0001000| kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000| key6;=cccccc := key7 : key8
==>all of space chars split the line.
col |....+....1....+..
*******|********** TOP OF
0001000*
0001100*kay1=11111111;
0001200*key2===222222222
0001300*:
0001400*key3=:333333333
0001500*key4=;
0001600*
0001700*
0001800*key5
0002000*
0003000*key6;=cccccc
0004000*:=
0005000*key7
0006000*:
0007000*
0008000*
0009000*key8
===>spl strspace
col |....+....1....+....2....+....3....+....4....+....5....+....6....
*******|********** TOP OF FILE *****************************************
0001000| kay1=11111111; key2===222222222 : key3=:333333333 key4=; key5
0002000| key6;=cccccc := key7 : key8
==>continued space chars split only once.
col |....+....1....+...
*******|********** TOP OF
0001000*
0001100*kay1=11111111;
0001200*key2===222222222
0001300*:
0001400*key3=:333333333
0001500*key4=;
0001600*key5
0002000*
0003000*key6;=cccccc
0004000*:=
0005000*key7
0006000*:
0007000*key8 7