IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to generate a file based on a value in the control card


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill Ross

New User


Joined: 25 Jan 2007
Posts: 39
Location: Charleston SC

PostPosted: Wed Mar 28, 2007 11:11 pm
Reply with quote

I know there is a resolution to this task I am not familiar with how to ?stack? or concatenate ICETOOL commands.

The scenario is this, based on the value of column three of a control card (which can contain the value of a ?d? (daily) or ?w? (weekly)).

I need to generate two files (one of which I realize will be null, based on the value of column three).

Also I need to set a return code to allow/disallow subsequent jobsteps from executing or not executing. I would assume that for the daily (one return code) and for the weekly (another return code).
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Mar 28, 2007 11:48 pm
Reply with quote

Bill,

I can't figure out what you need from what you've said. Could you please elaborate. Examples of the records involved would help. It's not clear to me what you mean by "generate two files". What do they look like?

Quote:
I need to set a return code to allow/disallow subsequent jobsteps from executing or not executing.


Based on what? Set to what for what reason?
Back to top
View user's profile Send private message
Bill Ross

New User


Joined: 25 Jan 2007
Posts: 39
Location: Charleston SC

PostPosted: Fri Mar 30, 2007 2:37 am
Reply with quote

The task has been assigned to another person. But I will try to explain the task as I understand it.

A file would be input to the Sort (ICETOOL) step. A control card would be input also.

On the control card in the third position would be either a "D" or "W", based on this value the Sort (ICETOOL) step would have to set a return code(based on the value in column three) to determine file processing in subsequent steps.

I am sure I will have other questions for you sir.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Mar 30, 2007 2:51 am
Reply with quote

Ok, I'll pass on this one since it's still unclear to me what's needed and you don't need it anymore.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 30, 2007 3:18 am
Reply with quote

Bill,

Look at Frank's sort tricks, to set a return code if the file is empty or not.
You might be able to infil omit the D record and the count (?) could return a cc of 12 if the input record contained the D and 0 if it contained the W.
I think that is what you are asking for, but you will have to play with it to get it right.

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top