right now Zowe is using the REST API to retrieve the dataset and expose it in an editor (No ENQ). When the user wants to save it it checks to see if the file changed and prompts the user how they want to proceed.
Question for y’all. I would like to do a diff on the modified file and present the user with the changes. They could REPLACE the file with the editor contents, MERGE them which would be something they would do after a review of the diff, ABANDON them or save them somewhere else. Does this strategy sound acceptable ? Matt Hogstrom [email protected] +1-919-656-0564 PGP Key: 0x90ECB270 Facebook <https://facebook.com/matt.hogstrom> LinkedIn <https://linkedin/in/mhogstrom> Twitter <https://twitter.com/hogstrom> “It may be cognitive, but, it ain’t intuitive." — Hogstrom > On Aug 30, 2018, at 9:42 AM, Kirk Wolf <[email protected]> wrote: > > The z/OSMF Rest files APIs just offer the same SPFEDIT ENQ support that you > get with ISPF EDIT. Makes sense to have it if you want to play in that > world, but it's use is completely optional. > It fully supports a client that wants to detect changes and merge updates > in the manners described on this thread. The Put / Get data set services > support standard If-None-Match/If-Match request headers and Etag response > headers, which provide you with tokens (hashes) so that you can easily have > clients deal with detection of changed data, merging, etc. > > See: > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.izua700/IZUHPINFO_API_GetReadDataSet.htm > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.izua700/IZUHPINFO_API_PutWriteDataSet.htm > > Does Zowe expose this functionality? I don't know. > > Other thoughts - > - IMO, source code is better in zFS filesystems, not PDS data sets. Maybe > only on zFS for building. > - The best place to merge is via your favorite SCCS. The stuff that your > interactively "edit" should be your own copy. > > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
