You can use %Replace BIF:
V_Pos = %Scan('\':v_Path);
Dow v_Pos > 0;
v_Link = %Replace('/':v_Link:v_Pos:1);
v_Pos = %Scan('\':v_Link);
Enddo;
Florin Todor
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ali Ekinci
Sent: Tuesday, April 29, 2008 2:29 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Is there any api to convert Windows path to IFS path ?
Looking for an api to convert IFS path string from Windows style
(\\myas400\QDLS\mdDir\myfile.txt) to IFS style (/myDir/myfile.txt).
Thx for any help in advance.
ali
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of mprice@xxxxxxxxx
Sent: Tuesday, April 29, 2008 11:54 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Populating External DS at V5R1.
Why would you want data in fields you do not use ??
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.