0% found this document useful (0 votes)
148 views

Setll, Setgt, Chain

The document contains instructions and examples for using the SETLL, SETGT, CHAIN and INDICATOR commands to search, retrieve, and test for records in a file based on field values. It shows how SETLL returns records less than or equal to the value, SETGT returns those greater than, and CHAIN searches for a value in a specific field and returns the entire chained record.

Uploaded by

Deepak as400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views

Setll, Setgt, Chain

The document contains instructions and examples for using the SETLL, SETGT, CHAIN and INDICATOR commands to search, retrieve, and test for records in a file based on field values. It shows how SETLL returns records less than or equal to the value, SETGT returns those greater than, and CHAIN searches for a value in a specific field and returns the entire chained record.

Uploaded by

Deepak as400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

*LOVAL SETLL

*HIVAL SETLL

*LOVAL
1
2
3
4
5
6
7
8
9
10
*HIVAL

*LOVAL SETGT

*HIVAL SETGT

*LOVAL
1
2
3
4
5
6
7
8
9
10
*HIVAL

03 SETLL FILE1

1
2
---->
3
4
5
6
7
8
9
10

03 SETGT FILE1

1
2
3
---->
4
5
6
7
8
9
10

SETLL:-

*LOVAL SETLL ==> READ , READE

*HIVAL SETLL ==> READP , READPE

03 SETLL ==> READ

1
2
--->
3
4
5
6
7
8
9
10

O/P:-
3
4
5
6
7
8
9
10

03 SETLL ==> READE

1
2
--->
3
4
5
3
7
8
9
3
O/P:-
3
3
3

SETGT:-

*LOVAL SETGT ==> READ , READE


*HIVAL SETGT ==> READP , READPE

03 SETGT ==> READP

1
2
3
--->
4
5
6
7
8
9
10

O/P:-
3
2
1

03 SETGT ==> READPE

3
2
3
--->
4
5
6
7
8
9
10

O/P:-
3
3

CHAIN:

NO1 NAME1 LOCATION1


000001 1 AAAAAAAAAA AP
000002 2 BBBBBBBBBB CHENNAI -----CHAIN
000003 3 CCCCCCCCCC DELHI
000004 2 DDDDDDDD DELHI
000005 3 EEEEEEEEEE CHENNAI
000006 2 FFFFFFFFFF HTD
000007 2 AHDEFVEVB SLJBVSFB
000008 3 KSJFBV SALIRAHG

1
---->SETLL
2 -----CHAIN
---->SETGT
3
4
5
6
7
8
9
10

12 CHAIN FILE1 20(HI INDICATOR)

*IN20 = *OFF (0) -> FOUND

*IN20 = *ON (1) -> NOT FOUND

12 setll FILE1 20(eq INDICATOR)

*IN20 = *On (0) -> FOUND

*IN20 = *Off (1) -> NOT FOUND

12 setgt FILE1 20(eq INDICATOR)

*IN20 = *On (0) -> FOUND

*IN20 = *Off (1) -> NOT FOUND

You might also like