Page 1 of 1

Edit and manage PDS member using SMP/E

PostPosted: Thu Feb 15, 2018 8:19 pm
by deucalion0
Good afternoon all!

I was wondering if it was possible to edit a PDS member using SMP/E? Let's say I have a PDS member HLQ.MY.PDS(STABLE) and Inside the member STABLE is the following:
000001 <ENTRY 1 ABC>
000002 <ENTRY 2 DEF>
000003 <ENTRY 3 GHI>


Could I use SMP/E to mange this PDS member? If I wanted to apply a SYSMOD to change the member to reflect the following:
000001 <ENTRY 1 ABC>
000002 <ENTRY 2 XYZ>
000003 <ENTRY 3 GHI>
000004 <ENTRY 4 BMW>


I have researched the internet and looked through the manuals, I am perhaps not using the relevant keywords to find this functionality or it does not exist.

I would appreciate any enlightenment on this if possible.

Thanks a lot!!

Re: Edit and manage PDS member using SMP/E

PostPosted: Thu Feb 15, 2018 8:49 pm
by enrico-sorichetti
why would You want to implement a complicate SMPE workflow just to update a PDS

here is a sketch ( incomplete ) of the steps needed

PREPARATION
define the standards , apply/accept apply only
- decide if the updates are full source replacements
- or iebupdte updates
define the naming conventions ( FMID, sysmods )
create the SMPE environment

the fun part of the preparation
build the sysmod for the initial installation of Your pds

UPDATE
create the sysmod
- use the proper sysmodid
- implement the proper PRE/SUP tokens

receive the sysmod
apply/check the sysmod
apply the sysmod
- do the accept processing if the design has it planned


...
...
...
...

Re: Edit and manage PDS member using SMP/E

PostPosted: Thu Feb 15, 2018 9:23 pm
by deucalion0
enrico-sorichetti wrote:why would You want to implement a complicate SMPE workflow just to update a PDS

here is a sketch ( incomplete ) of the steps needed

PREPARATION
define the standards , apply/accept apply only
- decide if the updates are full source replacements
- or iebupdte updates
define the naming conventions ( FMID, sysmods )
create the SMPE environment

the fun part of the preparation
build the sysmod for the initial installation of Your pds

UPDATE
create the sysmod
- use the proper sysmodid
- implement the proper PRE/SUP tokens

receive the sysmod
apply/check the sysmod
apply the sysmod
- do the accept processing if the design has it planned


...
...
...
...


Hi Enrico!

Thanks for your fast response to this question, you raise a very good point or two.

I am just very curious about SMP/E and I have always wondered if it would be possible to do this.

From your reply, I am going to assume that it is possible but not a very good approach?

I will take it from your wealth of experience that my thinking is not the way forward with this.

Thanks!!

Re: Edit and manage PDS member using SMP/E

PostPosted: Thu Feb 15, 2018 9:36 pm
by steve-myers
Yes, but there are lot of strange restrictions that means it's impractical.
  1. The source maintenance program is IEBUPDTE.
  2. You must use sequence numbers.
  3. You cannot use ./ NUMBER INSERT=YES.
  4. You cannot use ./ DELETE. You "delete" a line by making it an Assembler comment!
  5. If you are using ++SRC to define a module with no corresponding ++MOD, you cannot specify the module attributes for the DLIB.
In other words, SMP is OK to define a "macro" element such as an Assembler macro or a member that's a cataloged procedure where "maintenance" amounts to replacing the element. If I understand what you're thinking about, it ain't gonna work.