Hello,
I have got a varchar string 07363403LO980011035206687030MCE/LOCE465/030
which I have passed into my function. I want it to be 'worked on' on that the function eventually returns the string as -
'061346(Time)03(RecType)SN01(PdtCode)0145(CampNo)035152198(SpCode)030(Sp_len)AMV/MAFR452/030(ComNum)'
All this is needed so to enable ease of reading of the strings inividual parts. For each one of these parts the data length will always be equal to the length given above; eg Time 061346 = 6 and PdtCode SN01 = 4 chars...etc.
Would I need to use something like
create or replace procedure p_format (p_string IN OUT varchar2)
is
--
BEGIN
p_string := SUBSTR(p_format,1,6)||
'Time'||SUBSTR(p_format,6,2)||
'RecType'||SUBSTR(p_format,8,4)||
'PdtCode'||SUBSTR(p_format,12,4)||.......
...so forth ???
Help would be very much appreciated
rgds
I have got a varchar string 07363403LO980011035206687030MCE/LOCE465/030
which I have passed into my function. I want it to be 'worked on' on that the function eventually returns the string as -
'061346(Time)03(RecType)SN01(PdtCode)0145(CampNo)035152198(SpCode)030(Sp_len)AMV/MAFR452/030(ComNum)'
All this is needed so to enable ease of reading of the strings inividual parts. For each one of these parts the data length will always be equal to the length given above; eg Time 061346 = 6 and PdtCode SN01 = 4 chars...etc.
Would I need to use something like
create or replace procedure p_format (p_string IN OUT varchar2)
is
--
BEGIN
p_string := SUBSTR(p_format,1,6)||
'Time'||SUBSTR(p_format,6,2)||
'RecType'||SUBSTR(p_format,8,4)||
'PdtCode'||SUBSTR(p_format,12,4)||.......
...so forth ???
Help would be very much appreciated
rgds