Skip to content

Commit

Permalink
Remove hard coded library in CL; configure for RDi (#6)
Browse files Browse the repository at this point in the history
* Initial commit for a branch to try out RDi and eGit.
RDi has the iProjects perspective which allows testing and development,
and as a side effect, keeps a copy of the source in a stream file.  It
is that stream file we're going to piggyback on.

* Initial commit; using RDi iProjects

* Remove hard coded library

* Put library parameter in CL call

* Change build.txt to match RDi folder hierarchy.
Also, remove PDIR() when done.

* Typo in cleanup command.

* Add MONMSG to handle errors.  
Will ignore if message file already exists.
Will ignore if message ID already exists.
  • Loading branch information
starbuck5250 committed May 29, 2016
1 parent 92e16ac commit 527c222
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .ibmi/.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon May 23 15:56:19 EDT 2016
com.ibm.etools.iseries.remotebuild\:ActiveBuildStyle=com.ibm.etools.iseries.remotebuild.style.program
2 changes: 2 additions & 0 deletions .ibmi/QCLSRC/.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon May 23 16:02:47 EDT 2016
com.ibm.etools.iseries.projects.core\:ccsid=37
3 changes: 3 additions & 0 deletions .ibmi/QRPGLESRC/.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Mon May 23 16:03:15 EDT 2016
com.ibm.etools.iseries.projects.core\:ccsid=37
com.ibm.etools.iseries.projects.core\:recordLength=92
22 changes: 22 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SEUEXIT</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.ibm.etools.iseries.perspective.projectBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.iseries.projects.modelValidator</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.ibm.etools.iseries.perspective.nature</nature>
</natures>
</projectDescription>
23 changes: 23 additions & 0 deletions QCLSRC/SEUEXITCL.CLP
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Create SEUEXIT message file */
/* parameter is the name of the library where you want */
/* to install the message file */
pgm &tgtlib

dcl &tgtlib *char 10

monmsg cpf2112 /* MSGF already exists */
monmsg cpf2412 /* MSG already exists */

CRTMSGF MSGF(&tgtlib/SEUEXIT) TEXT('SEU Exit program messages') CCSID(*MSGD)

ADDMSGD MSGID(SEU0001) MSGF(SEUEXIT) MSG('Cursor is not positioned within a +
source statement.')
ADDMSGD MSGID(SEU0002) MSGF(SEUEXIT) MSG('Line split complete.')
ADDMSGD MSGID(SEU0003) MSGF(SEUEXIT) MSG('Line join complete.')
ADDMSGD MSGID(SEU0004) MSGF(SEUEXIT) MSG('Cannot update in Browse mode.')
ADDMSGD MSGID(SEU0005) MSGF(SEUEXIT) MSG('ATTR command processed.')
ADDMSGD MSGID(SEU0006) MSGF(SEUEXIT) MSG('ATTR command not valid for this +
member type.')
ADDMSGD MSGID(SEU0007) MSGF(SEUEXIT) MSG('&1') FMT((*CHAR 80))

endpgm
File renamed without changes.
16 changes: 0 additions & 16 deletions SEUEXITCL.CLP

This file was deleted.

10 changes: 5 additions & 5 deletions build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ files:
build:
ADDLIBLE &INTOLIB

SNDMSG MSG('SEUEXIT requires you to use ''BUCK'' as your INTOLIB due to the hardcode in SEUEXITCL.') TOUSR(*REQUESTER)

CRTSRCPF FILE(&INTOLIB/QSOURCE) RCDLEN(112)
CPYFRMSTMF FROMSTMF('&DIR/SEUEXITCL.CLP') TOMBR('/QSYS.lib/&INTOLIB.lib/QSOURCE.file/SEUEXITCL.mbr') MBROPT(*ADD)
CPYFRMSTMF FROMSTMF('&DIR/QCLSRC/SEUEXITCL.CLP') TOMBR('/QSYS.lib/&INTOLIB.lib/QSOURCE.file/SEUEXITCL.mbr') MBROPT(*ADD)
CRTCLPGM PGM(&INTOLIB/SEUEXITCL) SRCFILE(&INTOLIB/QSOURCE)
DLTOBJ &INTOLIB/QSOURCE OBJTYPE(*FILE)
CALL &INTOLIB/SEUEXITCL
CALL &INTOLIB/SEUEXITCL ('&INTOLIB')

CRTBNDRPG PGM(&INTOLIB/SEUEXIT) SRCSTMF('&DIR/QRPGLESRC/SEUEXIT.RPGLE') DBGVIEW(*LIST) REPLACE(*YES)

CRTBNDRPG PGM(&INTOLIB/SEUEXIT) SRCSTMF('&DIR/SEUEXIT.RPGLE') DBGVIEW(*LIST) REPLACE(*YES)
QSH CMD('rm -rf &DIR/')

0 comments on commit 527c222

Please sign in to comment.