SORT FIELDS=COPY
OUTREC FIELDS=(1:1,12,13:13,4,ZD,BI,LENGTH=2,15:17,10,25:27,12,PD,ZD,
EDIT=(STTTTTTTTT.TTT),SIGNS=(,-),31:39,12,PD,ZD,EDIT=TTTTTT.TT,
EDIT=(STTTTTTTTT.TTT),SIGNS=(,-))
my requirement is convert PD to ZD then put in EDIT
please help regarding syntax
I load thIS FILE FROM EXCEL TO MAINFRAME
AND I TAKE ONLY FOR 51 COLUMN
AS IN EXCEL ALL COLUMN IS KNOWN AS CHAR
file length is 51
BELGDCDL1 0020BANADA 000000000.00999999900.000.05
BELGDCDL1 0028BANADA 000000000.00999999900.000.05
BELGDCDL1 0193BANADA 000000000.00999999900.000.05
NOWI WANT TO UPLOAD IN BELOW FILE AND FORAMT OF THE FILE
01lang
10 Code Pic X(12).
10 No PiC S9(4) comp.
10 model Pic X(10)
10 amt pic S9(9)V9(2) usage comp-3
10 Dt-amt pIC s9(9)v9(2) USAGE COMP-3.
10 dt-pct pIC s9(1)v9(2) USAGE cOMP-3.
Hi my requirement is to insert in table before inserting table i foramtt the file as per table structure
I copy this file from excel to mainframe
BELGDCDL1 0020BANADA 000000000.00999999900.000.05
BELGDCDL1 0028BANADA 000000000.00999999900.000.05
BELGDCDL1 0193BANADA 000000000.00999999900.000.05
and length is 51 file but when i copy this file and put in table
01lang
10 Code Pic X(12).
10 No PiC S9(4) comp.
10 model Pic X(10)
10 amt pic S9(9)V9(2) usage comp-3
10 Dt-amt pIC s9(9)v9(2) USAGE COMP-3.
10 dt-pct pIC s9(1)v9(2) USAGE cOMP-3.
when i use only this card
OUTREC FIELDS=(1:1,12,13:13,4,ZD,BI,LENGTH=2,15:17,10,25:27,12,PD,ZD,
EDIT=(STTTTTTTTT.TTT),SIGNS=(,-),31:39,12,PD,ZD,EDIT=TTTTTT.TT,
EDIT=(STTTTTTTTT.TTT),SIGNS=(,-))
then from this position
10amt pic S9(9)V9(2) usage comp-3
10 Dt-amt pIC s9(9)v9(2) USAGE COMP-3.
10 dt-pct pIC s9(1)v9(2) USAGE cOMP-3.
this it shows invalid data in this particular field
and upto
10 Code Pic X(12).
10 No PiC S9(4) comp.
10 model Pic X(10)
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Satish,
Kolusu and I showed you valid various ways to convert or edit your data. But you come back and show invalid statements again. How do you expect us to help you if you ignore what we say?
If you can't show us exactly what your input data looks like and exactly what you want your output data to look like, we can't help you.
Position: 1-9 DELDDCDD1
10-12 spaces
13-16 0020
17-22 INDIAN
22-26 spaces
27-38 000000000.00
39-50 999999900.00
51-54 0.05
Now I convert this file in this fomat
SORT FIELDS=COPY
OUTREC BUILD=(1,12, $ CODE
13,4,ZD,BI,LENGTH=2, $ NO
15,10, $ MODEL
25,11,UFF,PD,LENGTH=6, $ AMT
36,11,UFF,PD,LENGTH=6, $ DT-AMT
47,04,UFF,PD,LENGTH=2) $ DT-PCT
My Job ran successfully and also its shows valid data in file but there is problem in DT_PCT it capture data but not exact
Correct data Could you please see my sort card and guide me any thing wrong and also I want to know when we use
UEF and what is the use of UEF