Re: Display records from a Physical File
Hello All,
I have created a PF with two records in it. One is alphanumeric and the other is a numeric field.
A UNIQUE
A R RPF9
A ALPHAN 25A TEXT( 'ALPHA NUMERIC DATA')
A NUMENRIC 25S 0
A K ALPHAN
I want to write a RPG program to extract the numbers from ALPHAN and store in Numeric part respectively.
Note: While updating the PF i have not entered the Numeric part i.e: its 0
ALPHAN NUMENRIC
000001 flywtliru235271@hjgkiu& 0
Output should be like
flywtliru@hjgkiu& 235271
I am able to display it simply.
FPF9 IF E k DISK
dalpha1 s 30a
c *loval setll pf9
c* if %equal
c dow *in90 = *off
c read pf9 90
c eval alpha1 = ALPHAN
c alpha1 dsply
c eval alpha1 = *blank
c enddo
c* endif
c seton lr
Please advice
Nilesh
Hello All,
I have created a PF with two records in it. One is alphanumeric and the other is a numeric field.
A UNIQUE
A R RPF9
A ALPHAN 25A TEXT( 'ALPHA NUMERIC DATA')
A NUMENRIC 25S 0
A K ALPHAN
I want to write a RPG program to extract the numbers from ALPHAN and store in Numeric part respectively.
Note: While updating the PF i have not entered the Numeric part i.e: its 0
ALPHAN NUMENRIC
000001 flywtliru235271@hjgkiu& 0
Output should be like
flywtliru@hjgkiu& 235271
I am able to display it simply.
FPF9 IF E k DISK
dalpha1 s 30a
c *loval setll pf9
c* if %equal
c dow *in90 = *off
c read pf9 90
c eval alpha1 = ALPHAN
c alpha1 dsply
c eval alpha1 = *blank
c enddo
c* endif
c seton lr
Please advice
Nilesh
Comment