Read the input file given by user



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Read the input file given by user

Postby cooldude14344 » Thu Apr 07, 2011 2:48 am

I have a screen built on an ISPF panel which gets the input file from user and submits the job using ISPF File-Tailoring skeletons. Now I would like to read the input file given by user. Please let me know which command to use?

the file input stored in variable
inputf = 'xxx.fgg...rtt'
cooldude14344
 
Posts: 19
Joined: Sat Mar 05, 2011 1:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Variable

Postby DFSHDC40 » Thu Apr 07, 2011 5:39 am

ALLOC is good - that makes the file available to your program (script for the kiddies)
EXECIO lets you read (or write the file)
The fine manuals (Rexx Reference and TSO commands , both on the TSO bookshelf ) will tell all
Or Edit Macros (ISPF ) offer another alternative
All depends what you want to achieve
If the code hasn't been changed, why is the LKED date today?
User avatar
DFSHDC40
 
Posts: 41
Joined: Sat Oct 16, 2010 4:16 pm
Location: IMS.SDFSRESL
Has thanked: 0 time
Been thanked: 0 time

Re: Variable

Postby NicC » Thu Apr 07, 2011 11:17 am

My reading of your change is that instead of the user keying in the dataset name on a purpose built panel he now puts it into a dataset (using edit?) that dataset is to be read and the filename put into the same variable as it would have done if it had been entered through the panel. After that the code is the same.
DFSHDC40 has pointed to the correct manuals but...if the user is just keying it into the dataset you lose the ability to edit the name at the point of entry the main edit being 'is it a valid dataset name format?' and a check can be made for the dataset existing - using SYSDSN I think - and bugging the user if it does not.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post