View previous topic :: View next topic
|
Author |
Message |
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
Hi All,
I have to read a Skeleton which is VB 255 LRECL. And load it into a ISPF table.
I would like to use FTINCL instead of EXECIO to read the Skel so that substitution or dialogue variable will be substituted.
I understand that we can not use the TEMP or ZTEMPF since it will write only 80 FB output. Hence I am forced to write it out to a o/p file and then read the o/p file with EXECIO and load a Table one row after that other.
"FREE F(TMPRAVF)"
"FREE F(TMPRAVV)"
"ALLOC DD(TMPRAVF) DA('UserID.WKBN.ISPSLIB.FB255') SHR REUSE"
"ALLOC DD(TMPRAVV) DA('UserID.WKBN.ISPSLIB.VB255') SHR REUSE"
say 'alloc : 'rc zerrlm
address ispexec "LIBDEF ISPSLIB LIBRARY ID(TMPRAVF)"
say 'libdef ispSLIB: 'rc zerrlm
address ispexec "LIBDEF ISPFILE LIBRARY ID(TMPRAVV)"
say 'libdef ispFILE: 'rc zerrlm
address ispexec "FTINCL SKELRF6"
address ispexec "FTCLOSE NAME(TRAVI)"
say 'FTCLOSE : 'rc zerrlm
"FREE F(ISPSLIB)"
"FREE F(ISPFILE)"
"FREE F(TMPRAVF)"
"FREE F(TMPRAVV)"
...
...
I am getting RC zero and a member with TRAVI is being catalogued in 'UserID.WKBN.ISPSLIB.VB255'
Without having it to store it into a output library and reading it again using EXECIO is there a way we can load it into an ISPF Table?
Thank you!
Ravikanth Chavali |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What exactly are you trying to achieve here |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Please show several rows of your skeleton and also show us your table definition. |
|
Back to top |
|
|
|