SELECT command for multi-value fields
- EDA001
- Topic Author
- Visitor
9 years 9 months ago #16940
by EDA001
SELECT command for multi-value fields was created by EDA001
dear all
greetings
i have the following SELECT command running from the jshell in my t24 environment.
SELECT FBNK.AA.ARR.PAYMENT.SCHEDULE SAVING EVAL"PAYMENT.TYPE:',':PAYMENT.FREQ:',':CALC.AMOUNT:',':ACTUAL.AMT:',':BASE.DATE:',':ID.COMP.1:',':ID.COMP.3:',':END.DATE" .
i save the out put in &SAVEDLISTS& using SAVE-LIST command. in a CSV file format.
the command work fine but when i open the csv file in excel , the output iS not what i want. This happen whenever multi-value fields are included in select statement.
as you can see it below the date and the arrangement no is reported under payment frequency and calculated amount filed respectively
IS there any solution or this ? can any one help ?
kindly see below the sample data taken from out put of the above select command
CONSTANT e0Y e1M e0W o28D e0F 611.13 AA12048RCCG5 20120217.1
ACTUAL e0Y e1M e0W o28D e0F 611.13 AA12048RCCG5 20120217.1
20120217 AA12048RCCG520120217.1
CONSTANT e0Y e1M e0W o28D e0F 684.78 AA120487TLBD 20120217.1
ACTUAL e0Y e1M e0W o28D e0F 684.78 AA120487TLBD 20120217.1
20120217 AA120487TLBD 20120217.1
greetings
i have the following SELECT command running from the jshell in my t24 environment.
SELECT FBNK.AA.ARR.PAYMENT.SCHEDULE SAVING EVAL"PAYMENT.TYPE:',':PAYMENT.FREQ:',':CALC.AMOUNT:',':ACTUAL.AMT:',':BASE.DATE:',':ID.COMP.1:',':ID.COMP.3:',':END.DATE" .
i save the out put in &SAVEDLISTS& using SAVE-LIST command. in a CSV file format.
the command work fine but when i open the csv file in excel , the output iS not what i want. This happen whenever multi-value fields are included in select statement.
as you can see it below the date and the arrangement no is reported under payment frequency and calculated amount filed respectively
IS there any solution or this ? can any one help ?
kindly see below the sample data taken from out put of the above select command
CONSTANT e0Y e1M e0W o28D e0F 611.13 AA12048RCCG5 20120217.1
ACTUAL e0Y e1M e0W o28D e0F 611.13 AA12048RCCG5 20120217.1
20120217 AA12048RCCG520120217.1
CONSTANT e0Y e1M e0W o28D e0F 684.78 AA120487TLBD 20120217.1
ACTUAL e0Y e1M e0W o28D e0F 684.78 AA120487TLBD 20120217.1
20120217 AA120487TLBD 20120217.1
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
9 years 9 months ago #16944
by jpb
Replied by jpb on topic SELECT command for multi-value fields
I don't know the structure of AA.ARR.PAYMENT.SCHEDULE but for listing multi-/subvalues the BY.EXP expression may help.
Try with BY.EXP PAYMENT.FREQ, this should result in a separate line for each PAYMENT.FREQ where the single values are repeated.
Try with BY.EXP PAYMENT.FREQ, this should result in a separate line for each PAYMENT.FREQ where the single values are repeated.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds