Skip to content

Instantly share code, notes, and snippets.

@lbdyck
Created May 25, 2023 14:47
Show Gist options
  • Save lbdyck/886b657d3f3de89cad1a69fa3c8bf74b to your computer and use it in GitHub Desktop.
Save lbdyck/886b657d3f3de89cad1a69fa3c8bf74b to your computer and use it in GitHub Desktop.
Enable Any Case Search with SRCHFOR when using DSLIST
/* ---------------------------------------------------- *
| Change the zus4anyc (SRCHFOR default) to selected (/) |
| if it is null with option Set. |
| Or option Reset restore it. |
| |
| Use this before and after thus: |
| |
| Address ISPExec |
| call check_anyc 'SET' |
| "LMDINIT LISTID(LISTID) LEVEL("hlq"."file_pfx"*)" |
| "LMDDISP LISTID("ListId") Confirm(Yes)" |
| "LMDFREE LISTID("ListId")" |
| call check_anyc 'RESET' |
| |
* ----------------------------------------------------- */
Check_AnyC:
arg anyc_opt
'VGet (ZUS4ANYC) Profile'
if anyc_opt = 'SET' then do
save_anyc = zus4anyc
if zus4anyc = '/' then return
if zus4anyc = ''
then zus4anyc = '/'
'vput (zus4anyc) profile'
end
if anyc_opt = 'RESET' then do
if save_zus4anyc = '/' then return
zus4anyc = save_anyc
'Vput (ZUS4ANYC) Profile'
end
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment