EDIT and FSE is used when you want to make/edit a data and also used for longer than 80 LRECL.
1. In a ‘READY’ screen, type ‘EDIT’ then press ‘Enter’.
READY
edit
2. Enter the data name with apostrophe, then type ‘data’.
READY
edit
ENTER DATA SET NAME -
'pt8102.test01.data'
ENTER DATA SET TYPE-
data
DATA SET OR MEMBER NOT FOUND, ASSUMED TO BE NEW
INPUT
00010 This is where you put the code
3. If you are done, press ‘Enter’ twice or until you see the ‘EDIT’ appears. Type ‘end’, it will ask you to save or end, then type ‘end’ if you want to discard or ‘save’ if you want to save the data.
end
NOTHING SAVED
ENTER SAVE OR END-
SAVE
4. To edit your data, in a ‘READY’ screen, type ‘FSE your.data’ then press ‘Enter’.
READY
fse pt8101.test.data
5. To insert a line: Example, I want to add three lines after line 000700, type ‘insert 000700 3’, then press ‘Enter’.
Before:
READY
==> insert 000700 3 ==>TOP OF DATA SET
000100
000200
000300 TEST
000400
000500
000600
000700 data
After:
READY
==> ==>TOP OF DATA SET
000100
000200
000300 TEST
000400
000500
000600
000700 DATA
000701
000702
000703
6. To delete a line: Example, I want to delete line 000400 up to 000600, type ‘del 000400 000600’, then press ‘Enter’.
Before:
READY
==> del 000400 000600 ==>TOP OF DATA SET
000100
000200
000300 TEST
000400
000500
000600
000700 DATA
000701
000702
000703
After:
READY
==> ==>TOP OF DATA SET
000100
000200
000300 TEST
000700 DATA
000701
000702
000703
7. If you want to add a code on a specified column: Example I want to add a code to column 41, type ‘col 41’ then press ‘Enter’.
==> col 41 ==>
000100 START OF COLUMN 41
000200
000300 TEST
000400 DATA
000500
000600
000700
COL 1 ----+----!----+----!----+----!----+----!----+----!----+---
==> ==>
000100 start of column 41 00000100
000200 00000200
000300 00000300
000400 00000400
000500 00000500
000600 00000600
000700 00000700
COL 41 ----+----!----+----!----+----!----+----!