Development and Pipeline

Development and Pipeline

Development and Pipeline

Connecting mainframe application developers to discuss efficiently creating and maintaining z/OS applications

 View Only
Expand all | Collapse all

IBM Developer copy/paste to local PC folder problems

  • 1.  IBM Developer copy/paste to local PC folder problems

    Posted Mon September 25, 2023 11:00 AM
    Hello,


    I amusing copy/paste to copy a cobol source member in a PDS, and paste it into a new file in a local folder on my Windows laptop. Normally, the file copy/paste works fine, and the EBCDIC is converted automatically to ASCII during the copy/paste in Developer, and the new file on Windows is viewable with any editor like NOTEPAD.


    On a new Windows 11 PC with Developer v15, this copy/paste process does not convert the EBCDIC to ASCII. I know this is the case because I can view the Windows file with an EBCDIC file viewer.


    Is there some setting in Developer, or Windows, that is preventing the automatic character conversion during the copy/paste process?


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.


  • 2.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Mon September 25, 2023 11:02 AM
    Hello,


    I am using copy/paste to copy a cobol source member in a PDS, and paste it into a new file in a local folder on my Windows laptop. Normally, the file copy/paste works fine, and the EBCDIC is converted automatically to ASCII during the copy/paste in Developer, and the new file on Windows is viewable with any editor like NOTEPAD.


    On a new Windows 11 PC with Developer v15, this copy/paste process does not convert the EBCDIC to ASCII. I know this is the case because I can view the Windows file with an EBCDIC file viewer.


    Is there some setting in Developer, or Windows, that is preventing the automatic character conversion during the copy/paste process?


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 3.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 08:57 AM

    Hi Gregory,

    If you go to Preferences->Remote Systems->Files, there is a setting called "Cross system file transfer target encoding".  This preference is used to determine whether the destination encoding should use the original (source) encoding or the encoding of the target environment.   In your case, you would want this preference to determine the encoding from the target environment.   Can you make sure that is set? 

    Regards,

    David



    ------------------------------
    Dave McKnight
    ------------------------------



  • 4.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 01:33 PM
    Thanks for the idea.


    My system is Developer V15.0.7 and the preferences look like this, and the copy/paste works fine.

    There is no type set for *.jcl or *.cbl extensions, and interestingly the 'Determine from Target Environment' is not selected.


    [cid:26ec7700-b87a-46cf-bdfa-4d4e8f537d9d]


    The new system is Developer V16, and the settings are the same, and it is not working.

    I was able to add *.jcl and *.cbl type with Text file transfer mode, and tested it again, but it is not working.


    A few things I will try when I get access to the new system again:


    1) I will try exit Developer and restart Developer just in case.


    2) Changing Cross System File Transfer Target Encoding to Determine from target environment.

    And test again.


    3) I will try exit Developer and restart Developer just in case.

    And test again.


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 5.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 01:40 PM

    One other thing to try if it doesn't work after changing the preferences would be to clear the RSE file cache.   To do that, go to Preferences->Remote Systems->File Cache and then click Clear Cached Files and then attempt the copy again.



    ------------------------------
    Dave McKnight
    ------------------------------



  • 6.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 03:39 PM
    Nothing has helped correct the copy/paste problem so far.

    Any other ideas?


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 7.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 03:52 PM

    You mentioned trying this worked with IDz 15.0.7 but not with v16.  What is the exact version of IDz 16 you tried this with?



    ------------------------------
    Dave McKnight
    ------------------------------



  • 8.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Tue September 26, 2023 06:33 PM
    IBM® Developer for z/OS®
    Version: 15.0.7
    Build id: 15.0.7.202308252231-2

    This works fine.

    IBM® Developer for z/OS®
    Version: 16.0.2
    Build id: 16.0.2.202306121415-160

    This does not work.


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 9.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Wed September 27, 2023 08:36 AM

    I tried to reproduce this using Build id: 16.0.2.202306121415-160 but it works for me.   What I think may have happened is that, as a result of a previous transfer, the EBCDIC encoding was stored against the local copy of the file.  That would result in RSE interpreting the target encoding as EBCDIC in subsequent copy attempts.  Using the Remote Systems view, can you browse to the local file copy of PDS member, then open its property page to see what encoding is specified there?   If the encoding specified there is EBCDIC (or the folder containing the file indicates EBCDIC) then that explains why it is converting to that encoding.  To get around that, delete the copied file via RSE (so that the associated encoding is cleared) before attempting the copy again.   If that doesn't help, you could change the encoding of the local file (to UTF-8 or cp1252) via the RSE property page and then try the copy again.



    ------------------------------
    Dave McKnight
    ------------------------------



  • 10.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Wed September 27, 2023 09:37 AM
    Hello,


    I checked the properties of a file that copied correctly on my system with conversion from EBCDIC to ASCII.


    On mainframe, dataset member properties show:

    [cid:3f205de7-bd56-4662-9213-4d71b17fe538]


    On Windows folder via LOCAL section in Developer, properties show:

    [cid:315fb4ec-57f1-40af-b831-cdd301469224]


    And checked the properties of the file that was copied as EBCDIC with out conversion from EBCDIC to ASCII,


    On Windows folder via LOCAL section in Developer, properties show:

    [cid:fa75539c-d387-4d6a-b470-0b99ffc29e09]



    1) I can only view the file on Windows with an EBCDIC file viewer even though the encoding shows as CP1252, but is actually EBCDIC in the file.


    Opening the windows local copy with Developer shows this:


    [cid:e9228045-d207-47da-bb2f-b3c3a974ad21]


    Opening the windows local copy with an EBCDIC file viewer on Windows shows this:


    [cid:51caed62-b73a-4c85-8ae0-a0099267a775]


    2) I have tried this with different members from different PDS datasets being copied into new different folders on Windows local drive, and it always does not do the conversion from EBCDIC to ASCII, and the properties look like what I showed above.


    3) I do not understand changing the encoding of the local file via the RSE property page, and then try the copy again, since the local encoding on the mainframe dataset member is already UTF-8, and the encoding after the copy to Windows is CP1252?


    At this point, I will do some more testing, and try to find a pattern of what works and what does not work. I may upgrade to V16 on my system to try to simulate the problem, or find another system with V16 to do some more testing with.


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 11.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Wed September 27, 2023 11:36 AM

    Hi Gregory,

    I'm sorry this is still not working for you.  It must be very frustrating and  I'm perplexed because, using the exact same product version, I'm not able to reproduce what you're seeing.

    1) and 2)
    Unfortunately I'm not able to see any of your screen captures here. Could you tell me what encodings and file transfer modes the properties pages indicate (without the pictures)?  Can you also tell me what the encoding field shows for the target folders on the property page?  One other thing, from Preferences->Remote Systems->Files is the default file transfer mode set to binary or text?  

    3) 
    When you do a cross-system transfer (i.e. copy from one system to another), RSE first downloads from the MVS host to the Eclipse workspace using the specified mapping (i.e. IBM-1047->UTF-8) and then it copies from the workspace to the destination system, local in your case (i.e. converting from UTF-8 to the target encoding).  Since your local files end up in EBCDIC, it seems like your local file system, or a folder/file under it, might be configured to use EBCDIC.  In the Remote Systems view, if you go to the properties page for Local, what default encoding is listed there?

    Regards,

    David



    ------------------------------
    Dave McKnight
    ------------------------------



  • 12.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Wed September 27, 2023 04:30 PM
    I think I got everything you asked for in last posting:


    1) and 2)
    Unfortunately I'm not able to see any of your screen captures here.
    Could you tell me what encodings and file transfer modes the properties pages indicate (without the pictures)?

    I checked the properties of a file that copied correctly on my system with conversion from EBCDIC to ASCII.

    On mainframe, dataset member properties show:
    Mapping
    - Extension - Inherit from system mapping (cbl)
    - Transfer - Inherit from system mapping (text)
    - Code Pages - Inherit from system mapping (IBM-037)
    - Local code page - Inherit from system mapping (UTF-8)

    On Windows folder via LOCAL section in Developer, properties show:
    - File encoding - Default (cp1252)
    - File Transfer Mode - Default (Text)

    And checked the properties of the file that was copied as EBCDIC with out conversion from EBCDIC to ASCII,

    On Windows folder via LOCAL section in Developer, properties show
    - File encoding - Default (cp1252)
    - File Transfer Mode - Default (Text)

    Can you also tell me what the encoding field shows for the target folders on the property page?
    - File encoding - Default (cp1252)
    - File Transfer Mode - Default (Text)

    One other thing, from Preferences->Remote Systems->Files is the default file transfer mode set to binary or text?

    - Default File Transfer Mode - Text
    - Cross system file transfer target encoding - Determine from source

    3)
    When you do a cross-system transfer (i.e. copy from one system to another), RSE first downloads from the MVS host to the Eclipse workspace using the specified mapping (i.e. IBM-1047->UTF-8) and then it copies from the workspace to the destination system, local in your case (i.e. converting from UTF-8 to the target encoding). Since your local files end up in EBCDIC, it seems like your local file system, or a folder/file under it, might be configured to use EBCDIC.

    In the Remote Systems view, if you go to the properties page for Local, what default encoding is listed there?

    Default encoding for Local is Default from remote system (Cp1252)
    For folder, File encoding is Default (Cp1252)


    NB: if there is way I can send the screenshots then I could resend them?


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]







  • 13.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Thu September 28, 2023 08:53 AM

    Hi Gregory,

    Thanks for providing this information.  I see you have set Determine from source for the Cross system file transfer target encoding preference but to have your destination file in the local encoding, you will instead need to use Determine from target environment.  Can you change that and then try again? 

    Regards,
    David  



    ------------------------------
    Dave McKnight
    ------------------------------



  • 14.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Thu September 28, 2023 03:48 PM
    Hello,


    Success!


    On Developer V16, changing Preferences - Remote Systems - Files - Cross system file transfer target encoding

    to "Determine from target environment" and retesting the copy/paste worked.


    I had tested this before, but did this test with new member in a PDS on mainframe being copy/pasted to a new folder on Windows. Possibly, there was some latent effect caused by the previous copy/paste where the character conversion did not work even though the Cross system file transfer target encoding option had been changed.


    Thanks.


    Regards,
    Gregory Oakes
    Professor
    Faculty of Science, Engineering and Information Technology
    Durham College

    [cid:image002.jpg@01D8A2A0.BD7F1900]
    ________________________________
    This message is intended only for the named recipients. This message may contain information that is confidential or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.




  • 15.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Fri September 29, 2023 09:31 AM

    Hi Gregory,

    I'm glad to see that worked.  Right now the default for that preference is to determine from the source but, given more than one customer has run into this, we'll consider changing the default to determine from the target environment.

    Regards,

    David



    ------------------------------
    Dave McKnight
    ------------------------------



  • 16.  RE: IBM Developer copy/paste to local PC folder problems

    Posted Thu September 28, 2023 08:57 AM

    Hello,

    we had the same problem and the soulution ist to change on Pereference when you switch from IDz 15.0.x to 16.0.x.

    The Preference ist "Remote Systems" -> "Files" -> "Cross system file transfer target encoding" must set to "Determine from target environment".



    ------------------------------
    Frank Becker
    ------------------------------