codefori / codefori/vscode-ibmi
Display File (DSPF) and Printer File (PRTF) Preview Renderer Does Not Output DATE and TIME Keywords
- Dominant language
- TypeScript
- Stars
- 418
- Forks
- 160
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 12
Description
Display files (DSPF) and Printer files (PRTF) support the two keywords `DATE` and `TIME`. These keywords will output the job or system date/time. Both keywords support the optional value of `*JOB` or `*SYS`. The `DATE` keyword supports an additional optional value of `*Y` or `*YY` to indicate a 2-digit (`*Y`) or 4-digit (`*YY`) year. Both keywords also support the use of an Edit Word (`EDTWRD`) or Edit Code (`EDTCDE`) ... as well as `COLOR`, `DSPATR`, and `TEXT`.
Attached is an example DSPF source that positions the system date at (line 1, column 2) and the system time at (line 1, column 72). Below is the incorrect output of the renderer where it clearly does not show the date nor time.

Below is the expected view of the format:

The DDS DSPF example source:
[code4idttm.dspf.txt](https://github.com/user-attachments/files/20300733/code4idttm.dspf.txt)
|Context|Version|
|-|-|
|Code for IBM i version|2.15.3|
|Visual Studio Code version|1.100.2|
|Operating System|win32_x64|
Active extensions
```
.NET Install Tool (vscode-dotnet-runtime): 2.3.3
COBOL (cobol): 25.4.30
Code Coverage for IBM i (code-coverage-ibmi): 0.1.7
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Configuration Editing (configuration-editing): 1.0.0
Db2 for IBM i (vscode-db2i): 1.12.0
Dev Containers (remote-containers): 0.413.0
ESLint (vscode-eslint): 3.0.10
Emmet (emmet): 1.0.0
Error Lens (errorlens): 3.26.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitHub Pull Requests (vscode-pull-request-github): 0.110.0
GitLens — Git supercharged (gitlens): 17.1.0
HTML CSS Support (vscode-html-css): 2.0.13
IBM i Debug (ibmidebug): 2.0.2
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
IBM i Project Explorer (vscode-ibmi-projectexplorer): 2.12.3
IBM i Renderer (vscode-displayfile): 0.1.3
JSON Language Features (json-language-features): 1.0.0
Jira and Bitbucket (Atlassian Labs) (atlascode): 3.8.0
Merge Conflict (merge-conflict): 1.0.0
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Nx Console (angular-console): 18.49.3
Path Intellisense (path-intellisense): 2.10.0
Prettier - Code formatter (prettier-vscode): 11.0.0
Reload (reload): 0.0.7
Source Orbit (vscode-sourceorbit): 1.0.2
TODO Highlight (vscode-todo-highlight): 1.0.5
Todo Tree (todo-tree): 0.0.226
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WSL (remote-wsl): 0.99.0
YAML (vscode-yaml): 1.18.0
```
Remote system
|Setting|Value|
|-|-|
|IBM i OS|V7R4M0|
|Tech Refresh|7|
|CCSID Origin|37|
|Runtime CCSID|37|
|Default CCSID|37|
|SSHD CCSID|?|
|cqsh|true|
|SQL|Enabled
|Source dates|Disabled
### Enabled features
|/QOpenSys/pkgs/bin|/usr/bin|/QSYS.lib/ILEDITOR.lib|/QSYS.LIB|/QIBM/ProdData/IBMiDebugService/bin|/QOpenSys/QIBM/ProdData/JavaVM/jdk80|
|-|-|-|-|-|-|
|bash|attr|GETNEWLIBL.PGM|QZDFMDB2.PGM|startDebugService.sh|64bit|
|chsh|iconv|||||
|find|setccsid|||||
|git|uname|||||
|grep||||||
|ls||||||
|md5sum||||||
|sort||||||
|stat||||||
|tar||||||
|tn5250||||||
Shell env
```bash
BUILDLIB=QGPL
CURLIB=QGPL
PASE_USRGRP_LIMITED=N
PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
SHELL=/QOpenSys/pkgs/bin/bash
SHLVL=1
TZ=5,M3.2.0,M11.1.0
_=/QOpenSys/usr/bin/env
```
Variants
```json
{
"american": "#@$",
"local": "#@$",
"qsysNameRegex": {}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.