Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Get line number where cursor is from temporary dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 168
Location: India

PostPosted: Wed Oct 24, 2018 12:23 am    Post subject: Get line number where cursor is from temporary dataset
Reply with quote

Hi All,

Thanks for your support thru this forum.

I have a REXX program (say ABC) which is getting line number from Cataloged datasets or Jobs opened from SPOOL using SJ command.

Code:
Address ISPEXEC "CONTROL ERRORS RETURN"
"ISREDIT (LINE) = CURSOR"


However, this ABC program is not able to get the line number, where the cursor is, from temporarily viewed/opened dataset (opened by another REXX program (say XYZ))

XYZ program creates a JOB dynamically using Skeleton and ABC is failing when I run on the job opened in view mode by XYZ program.

Is it possible to get the line number and line text from temporarily opened datasets?


Kindly assist.
Back to top
View user's profile Send private message

Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 257
Location: Denmark

PostPosted: Wed Oct 24, 2018 2:42 am    Post subject:
Reply with quote

A VIEW is a VIEW. What error do you get? Have you traced the program?
From the manual: 'The position of the cursor shows the starting or ending location for the SEEK, FIND, CHANGE, and EXCLUDE commands'.
Are you sure that the text you search for is in the dataset?
Can we se the entire edit macro or at least the relevant parts? And part of the VIEWed file ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8751
Location: Welsh Wales

PostPosted: Wed Oct 24, 2018 11:30 am    Post subject:
Reply with quote

How are you trying to get the cursor position.
What are you actually trying to achieve.

You really must give us a hell of a lot more information to be able to get any help.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2130
Location: UK

PostPosted: Wed Oct 24, 2018 12:42 pm    Post subject: Reply to: Get line number where cursor is from temporary dataset
Reply with quote

You have to ensure the cursor is on a data line. When a data set is opened for browse/view/edit the cursor is initially on the command line unless you have used an IMACRO to place the cursor elswhere. If the IMACRO is to find or change and the find string is not found then the cursor will be on the command line which is not a data line.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add week number to a file name or rep... tejdeep0274 JCL & VSAM 2 Thu Jan 03, 2019 6:49 am
This topic is locked: you cannot edit posts or make replies. how to write a REXX to see whether da... javen777 CLIST & REXX 3 Wed Dec 19, 2018 11:36 am
No new posts How to count the number of times key ... vnktrrd DFSORT/ICETOOL 14 Thu Nov 15, 2018 9:19 pm
No new posts Accessing control blocks to retrieve ... menonkiran COBOL Programming 5 Wed Nov 14, 2018 9:08 pm
No new posts Number of Packages required for stati... manojthokala7 DB2 4 Mon Sep 17, 2018 7:14 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us