Académique Documents
Professionnel Documents
Culture Documents
This is source code entry/editor application that is used in AS400 to create any type of
member.
To open the SEU we can go to WRKMBRPDM and then press F6 (Create) or you can type
STRSEU on the command line. Then you will be prompted for source member name,
source member type, member description. Just enter the detail and press Enter.
To edit a member we can give option 2 against the member in PDM.
To delete a member we can give option 2 against the member in PDM.
To browse the member we can give option 5 against the member in PDM.
To rename the member we can give option 7 against the member in PDM.
To change text description of the member we can select option 13 against the member in
PDM.
File . . . . . . QRPGLESRC
Library . . . . IROBO1 Position to . . . . .
Bottom
Parameters or command
===>
F3=Exit F4=Prompt F5=Refresh F6=Create
>>>> It opens SEU
F9=Retrieve F10=Command entry F23=More options F24=More keys
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this
display
F24=More keys
Press Enter
In Session environment you can edit the session attributes highlighted below.
We can change the session default that will be used during source entry/editing process.
Bottom
F3=Exit F5=Refresh F12=Cancel
F14=Find/Change options F15=Browse/Copy options
SET Command
Another way of changing the environment is using SET command.
Line Command
Line command is used to enter/edit, copy, insert, overlay and delete the source statement.
I To insert a blank line below the record where the command is written. Each time we insert
data on
the blank line and press Enter, SEU inserts another blank line.
I n To insert n blank line below the record where the command is written. After the last line
data is
inserted and Enter is pressed, SEU inserts another blank line.
Writing I8 just before sequence no. 1 as a line command inserts 8 blank lines.
Press Enter:
If we paste some source code on these blank lines, the sequence no. will be generated
automatically as a extension in seq. no. 0000.00. If we insert 2 lines then the generated seq.
no. will be 0000.01 and0000.02.
Columns . . . : 6 100 Edit
SEU==>
FMT F FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords++++++++++++++++++
+Comments+
*************** Beginning of data ****************************************
0000.01 FPRINT2 o E PRINTER OFLIND(*IN92)
0000.02 FPARTY IF E K DISK
0001.00 FPRINT1 o E PRINTER OFLIND(*IN90)
0002.00 FACCOUNT IF E K DISK
0003.00 C Z-ADD *ZEROS COUNT 2 0
0004.00 C WRITE HEADER1
0005.00 C WRITE HEADER2
0006.00 C READ REC1
80
0007.00 C DOW *IN80=*OFF
0008.00 C WRITE DETAIL
90
0009.00 C 90 WRITE HEADER2
0010.00 C EVAL COUNT=COUNT+1
0011.00 C READ REC1
80
0012.00 C ENDDO
0013.00 C EVAL TOTAL=COUNT
0014.00 C WRITE FOOTER
0015.00 C SETON LR
****************** End of data
*********************************************
Copy records
To specify the new location for copied lines, type one of the following sequence line
commands:
After the line command specify the new location for copied lines by the relevant target
command (A, An, B, Bn, O, On)
Use the following line command to request SEU to show a free-format columns line:
Columns . . . : 6 76 Edit
AMITCC/QRPGLESRC
SEU==>
TESTSEU
FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++
++++
*************** Beginning of data
*************************************
0001.00 FREC11000 UF A E K DISK
0001.01 FREC1100DSPCF E WORKSTN SFILE(RECSFL:RRN)
0002.00 DI S 5 0
0002.01 DRRN S 5 0
0002.02 C EVAL RCDNBR=9900
0002.03 C DOW *IN03=*OFF
FMT C CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++Len+
+D+HiLoEq
0002.04 C 03 LEAVE
0002.05 C EXSR CLRSFL
0002.06 C EXSR FILSFL
0002.07 C EXSR DSPSFL
0002.08 C ENDDO
0005.00 C SETON LR
0005.01 *
0005.02 C CLRSFL BEGSR
0005.03 C SETON 40
IP?
Select Prompt
IPH(H Spec)
IPF(F Spec)
IPD(D Spec)
IPI(I Spec)
IPC(C Spec)
IPO(O Spec)
IPPR(prototype definition)
IPPI(procedure interface)
IPDP(for display file)
IPPF(for physical file)
+2 Line command moves the display from seq. no. 0002.00 to 0004.00
X line command at seq. no. 0004.00 excludes 1 record from the display.
Suppose we have excluded some records from the display as shown below:
Now we search write string in the non-excluded source by using option-3 in Records to
search field in Find/Change Options (shift+F2) as shown below.
Find/Change Options
Find . . . . . . . . . . . . . write
Change . . . . . . . . . . . .
From column number . . . . . . 1 1-100
To column number . . . . . . . 100 1-100 or blank
Occurrences to process . . . . 1 1=Next, 2=All, 3=Previous
4=First, 5=Last
Records to search . . . . . . . 3 1=All, 2=Excluded
3=Non-excluded
Kind of match . . . . . . . . . 2 1=Same case
2=Ignore case
Allow data shift . . . . . . . N Y=Yes, N=No
Search for date . . . . . . . . 13/01/12 YY/MM/DD or YYMMDD
Compare . . . . . . . . . . . 1=Less than
2=Equal to
3=Greater than
Just press Enter after this to get back to the source screen and press shift+F4 multiple times
to get all the records satisfying the search criteria. Hence we find 2 records as highlighted
below..
In the below source, the op-code WRITE falls between column 25-30. To hide the records
containing that op-code, we give the H command at SEU command entry as H WRITE 25 30
A. This command will hide the records, which has WRITE string at position 25-30 in all
source area.
Press Enter
Columns . . . : 6 100 Edit
SEU==>
FMT F FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++
+++++++
*************** Beginning of data
****************************************
0001.00 FPRINT1 o E PRINTER OFLIND(*IN90)
0002.00 FACCOUNT IF E K DISK
0003.00 C Z-ADD *ZEROS COUNT 2 0
- - - - ------------- 2 data records excluded
------------------------------------
0006.00 C READ REC1
80
0007.00 C DOW *IN80=*OFF
- - - - ------------- 2 data records excluded
------------------------------------
0010.00 C EVAL COUNT=COUNT+1
0011.00 C READ REC1
80
0012.00 C ENDDO
0013.00 C EVAL TOTAL=COUNT
- - - - ------------- 1 data records excluded
------------------------------------
0015.00 C SETON LR
****************** End of data
*******************************************
Columns . . . : 6 76 Edit
AMITCC/QRPGLESRC
SEU==>
TESTSEU
FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++
++++
*************** Beginning of data
*************************************
W771.00 FREC11000 UF A E K DISK
0001.01 FREC1100DSPCF E WORKSTN SFILE(RECSFL:RRN)
0002.00 DI S 5 0
0002.01 DRRN S 5 0
0002.02 C EVAL RCDNBR=9900
0002.03 C DOW *IN03=*OFF
0002.04 C 03 LEAVE
0002.05 C EXSR CLRSFL
0002.06 C EXSR FILSFL
0002.07 C EXSR DSPSFL
0002.08 C ENDDO
0005.00 C SETON LR
Result of W77
Columns . . . : 77 80 Edit
AMITCC/QRPGLESRC
SEU==>
TESTSEU
FMT FX ++++
*************** Beginning of data
*************************************
0001.00 121022
0001.01 121022
0002.00 121022
0002.01 120821
0002.02 120821
0002.03 120821
0002.04 120821
0002.05 120821
0002.06 120821
0002.07 120821
0002.08 120821
0005.00 120821
FIND/CHANGE Command
Shift-F2
We can search a string or search for date in source (included/excluded/all).
It has been discussed previously also in X line command section.
Find/Change Options
Find . . . . . . . . . . . . . ________
Change . . . . . . . . . . . .
From column number . . . . . . 1 1-80
To column number . . . . . . . 80 1-80 or blank
Occurrences to process . . . . 1 1=Next, 2=All, 3=Previous
4=First, 5=Last
Records to search . . . . . . . 1 1=All, 2=Excluded
3=Non-excluded
Kind of match . . . . . . . . . 2 1=Same case
2=Ignore case
Allow data shift . . . . . . . N Y=Yes, N=No
An alternative way is to directly give the SEU command entry as F E A 8. This command
will find(F) records with character E at
position 8 in all(A) source.
Columns . . . : 1 71 Edit
AMITCC/QRPGLESRC
SEU==> F E A 8
TESTSEU
FMT FX .....FFilename++IPEASF.....L.....A.Device+.Keywords++++++++++++++++
++++
*************** Beginning of data
*************************************
0001.00 FREC11000 UF A E K DISK
0001.01 FREC1100DSPCF E WORKSTN SFILE(RECSFL:RRN)
0002.00 DI S 5 0
0002.01 DRRN S 5 0
0002.02 C EVAL RCDNBR=9900
0002.03 C DOW *IN03=*OFF
0002.04 C 03 LEAVE
0002.05 C EXSR CLRSFL
0002.06 C EXSR FILSFL
0002.07 C EXSR DSPSFL
0002.08 C ENDDO
0005.00 C SETON
LR
Columns . . . : 6 76 Edit
AMITCC/QRPGLESRC
SEU==>
TESTSEU
FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++
++++
*************** Beginning of data
*************************************
0001.00 FREC11000 UF A E K DISK
0001.01 FREC1100DSPCF E WORKSTN SFILE(RECSFL:RRN)
0002.00 DI S 5 0
0002.01 DRRN S 5 0
0002.02 DRRN S 5 0
0002.03 DI S 5 0
Columns . . . : 1 71 Browse
AMIT/QRPGLESRC
SEU==>
MASTER
*************** Beginning of data
*************************************
0001.00 A REF(REFER)
0002.00 A R REC1
0003.00 A ORG R REFFLD(ORG REFER)
0004.00 A COLHDG('ORG CODE')
0005.00 A ACC R REFFLD(ACC REFER)
0006.00 A COLHDG('ACC NUMBER')
CHANGE
SET MATCH
SET SHIFT
SET TABS
TOP
BOTTOM
FILE
SAVE
HIDE