‎2009 Aug 19 6:51 PM
Hi guys:
I have a problem when to use the statement OPEN DATASET, I need to create in unix directory the next file:
/ZXQ/sap_i_files/vhvc/data/T0010360.W0041201.YXSP PR DISC_new
But when I created the file this delete the spaces and the file appear that:
/ZXQ/sap_i_files/vhvc/data/T0010360.W0041201.YXSP
The next words disappear the file.
What I can do?
Best for advanced
Dlc
‎2009 Aug 19 7:08 PM
1 Possible way will be check the output length of the file variable
say for eg.
OPEN DATASET ar_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
check ar_file variable length whether its accomodating full file name ?
a®
‎2009 Aug 19 7:08 PM
1 Possible way will be check the output length of the file variable
say for eg.
OPEN DATASET ar_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
check ar_file variable length whether its accomodating full file name ?
a®
‎2009 Aug 19 7:16 PM
The variables is:
newfile(128) type c.
I dont know if Ihave to added more length,
Regards,
‎2009 Aug 19 7:21 PM
Just for testing remove the space between YXSP PR DISC and keep it as .(dot) or Underscore
/ZXQ/sap_i_files/vhvc/data/T0010360.W0041201.YXSP.PR.DISC_new
and check
a®
‎2009 Aug 19 7:26 PM
When I to replace the space with _ or . , the file created is correct, but only when I want to use the spaces cut the length,
‎2009 Aug 19 7:30 PM
Then i think its Unix issue. For testing this use transaction code CG3Z and upload a file from your desktop to your Unix directory you mentioned with space in file name and check whether file created sucessfully with spaces
a®
‎2009 Aug 19 7:35 PM