Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding openset..

Former Member
0 Likes
753

hey Raja,

I tried below statement in 46B.

OPEN DATASET E_FILE FOR APPENDING IN TEXT MODE ENCODING DEFAULT.

but giving compile time error..why.

i want my code to work in both environment pls suggest me

ambichan.

1 ACCEPTED SOLUTION
Read only

krzysztof_konitz4
Contributor
0 Likes
684

Hi,

Try to use:

OPEN DATASET E_FILE FOR APPENDING IN TEXT MODE

without ENCODING DEFAULT.

Krzys

6 REPLIES 6
Read only

krzysztof_konitz4
Contributor
0 Likes
685

Hi,

Try to use:

OPEN DATASET E_FILE FOR APPENDING IN TEXT MODE

without ENCODING DEFAULT.

Krzys

Read only

0 Likes
684

well, if i remove ENCODING DEFAULT in OPEN dataset it works fine in 46B.

But in 620,It gives error.how to make this code mutually work in two different environment with same piece of code..

any reply for the post is appreciated

ambichan

Read only

0 Likes
684

Hi Ambi,

UNICODE related changes in your programs are essential to make it work in 6.20 and the same statements may not work in 4.6 B.

Specially UNICODE related changes, might well have to be handled using slightly different programs.

Also you should not de-activate the unicode check in the program attribute. Specially as you work with Japanese Language also ..

Further, even if you will find a OPEN DATASET code that works for 4.6b and 4.7 ..it's not something general ..

I mean ,not all the UNICODE related stmts will be compatible to all the versions.

Cheers,

Ram

Read only

0 Likes
684

Dear Ram,

Thanks for your reply.

I dont understand your reply completely. however i understood that no other way except doing different coding at program in this case to solve this issue. am i correct.

so always for 46b i have to use below statment

OPEN DATASET FPATH FOR APPENDING IN TEXT MODE.

and for 620(NO unicode system),i have to use different below statement to work right.

OPEN DATASET FPATH FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.

correct?

Read only

0 Likes
684

Almost..

But are you sure that you don't need UNICODE enabled stmts? If not sure, then check other variances of the OPEN DATASET ..default encoding might be good...

<<

and for 620(NO unicode system),i have to use different below statement to work right.

OPEN DATASET FPATH FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.

>>

Cheers,

Ram

Read only

0 Likes
684

Hey Ram,

one more thing..

Can we write code that if system is 46B then

...xxx code..

or else if 620B then

...yyy code..

in my program..

because in a single program can i use for two environment check and continue the code..any techniques..would be great..

ambichan