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
 
SYMNAMES in SORT card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
tvinodkumar7

New User


Joined: 06 Jan 2015
Posts: 19
Location: Hyderabad, INDIA

PostPosted: Fri Feb 13, 2015 10:35 am    Post subject: SYMNAMES in SORT card
Reply with quote

Hi,

I have requirement to retrieve records with current date.

step1 : Retrieved date from my date file using easytrieve as below

//TODAYDT EXEC EZTPCLGO
//DATEIN DD DSN=DATEFILE,DISP=SHR
//DATEOUT DD DSN=TODAY.DATE.PSFILE,DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=5,BLKSIZE=0,RECFM=FB,DSORG=PS),
// SPACE=(TRK,(1,1),RLSE),UNIT=SYSDA
//SYSIN DD *
FILE DATEIN VS
D-TODAY 16 5 P
FILE DATEOUT
OUT-TODAY-DT 1 5 P
JOB INPUT(NULL)
GET DATEIN
OUT-TODAY-DT = D-TODAY
PUT DATEOUT
STOP

now the file TODAY.DATE.PSFILE of length 5 is have current date.

//STEP001 EXEC PGM=SORT
//SORTIN DD DSN=TODAY.DATE.PSFILE,DISP=SHR
//SYMNAMES DD *
TODAYDT,'TODAY.DATE.PSFILE'
/*


I have to use the above value TODAYDT in the below sort step(WHEN) to build my records with current date.

SORT FIELDS=(1,18,CH,A)
OUTFIL IFTHEN=(WHEN=
(19,2,CH,EQ,C'10',AND,
210,1,CH,EQ,C'2',AND
265,05,PD,EQ,TODAYDT),
BUILD=(1:1,45))

How can I use the SYMNAMES? Please suggest.

TIA
Back to top
View user's profile Send private message

Smita.t2

New User


Joined: 17 Apr 2012
Posts: 26
Location: Bangalore

PostPosted: Fri Feb 13, 2015 1:17 pm    Post subject: Reply to: SYMNAMES in SORT card
Reply with quote

Is the check always going to be Current Date?
If so, you can eliminate the eztrieve program and just have one sort step to extract the records using DATE Operand.
I cannot test it right now, please try and let us know if it works.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Feb 13, 2015 2:00 pm    Post subject: Reply to: SYMNAMES in SORT card
Reply with quote

No. It is a sensible system which uses a date file, not relying on the system date which, daily, changes at the most inopportune moments.

tvinodkumar7,

Probably the easiest thing to do would be to format the symbol in the Easytrieve Plus program. LRECL 80, REFCM FB.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to Generate JCL using Sort naveen katkuri DFSORT/ICETOOL 7 Tue Mar 13, 2018 3:50 pm
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm

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